microsoft / WinUI-Gallery

This app demonstrates the controls available in WinUI and the Fluent Design System.
MIT License
2.83k stars 635 forks source link

WinUI-Gallery won't build with .NET 8 on Windows 10 x64 #1626

Closed ScooterTech closed 1 month ago

ScooterTech commented 1 month ago

Which version of the app?

WinUI 3 Gallery

Description

Build fails with: Severity Code Description Project File Line Suppression State Details Error (active) NETSDK1083 The specified RuntimeIdentifier 'win10-x86' is not recognized. See https://aka.ms/netsdk1083 for more information. WinUIGallery.DesktopWap C:\Program Files\dotnet\sdk\8.0.400\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets 90

Screenshots

No response

Windows version

Windows 10 22H2 (19045)

Additional context

From what I can google this has something to do with the changes made in .NET 8.

MGGSK commented 1 month ago

Try building the app for x64 and not x86. If that doesn't work try using the WinUIGallery.sln file instead of the WinUIGallery.DesktopWap.sln file to build the app.

karkarl commented 1 month ago

Hopefully MGGSK's response suffices as a workaround. Closing this issue.