Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Platform.xml not found #1736

Open
fubar-coder opened this issue Sep 7, 2024 · 0 comments
Open

Platform.xml not found #1736

fubar-coder opened this issue Sep 7, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@fubar-coder
Copy link

Describe the bug

When I try to build a WinUI 3 (C#) project, I get the following error:

EXEC : error : Could not read the Windows SDK's Platform.xml at C:\Program Files (x86)\Windows Kits\10\Platforms\UAP\10.0.19041.0\Platform.xml [D:\Entwicklung\Material.Icons\Material.Icons.WinUI3\Material.Icons.WinUI3.csproj]
C:\Users\fubar\.nuget\packages\microsoft.windows.cswinrt\2.1.1\build\Microsoft.Windows.CsWinRT.targets(290,5): error MSB3073: Der Befehl ""C:\Users\fubar\.nuget\packages\microsoft.windows.cswinrt\2.1.1\cswinrt.exe" @"Generated Files\\CsWinRT\cswinrt.rsp"" wurde mit dem Code 1 beendet. [D:\Entwicklung\Material.Icons\Material.Icons.WinUI3\Material.Icons.WinUI3.csproj]

To Reproduce

  1. git clone https://github.com/fubar-coder/Material.Icons.git
  2. cd .\Material.Icons
  3. git checkout -f a6997f592d344a8947c8a624b7881d9ca88f8524
  4. dotnet build

Expected behavior

It should use find the latest Windows SDK, UAP platform 10.0.22621.0 and should use the ApiContract information in the PreviousPlatforms.xml, //ApplicationPlatform[@version='10.0.19041.0'].

Version Info

  • CsWinRT, 2.1.1
  • .NET 8.0.401
  • Windows SDK 10, UAP Platform 10.0.22621.0

Additional context

First reported here: microsoft/microsoft-ui-xaml#9959

@fubar-coder fubar-coder added the bug Something isn't working label Sep 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant