Using WindowsAppSDK in WPF .net 6 project.

aluzi liu 486 Reputation points
2023-04-14T06:45:34.95+00:00

I create a new WPF project, using .net 6 in VS2022, and I install the "WindowsAppSDK" nuget package, after package installed, two error message appeared:

NETSDK1082	Microsoft.WindowsDesktop.App.WPF There was no runtime pack available RuntimeIdentifier“win10-arm”

NETSDK1082	Microsoft.WindowsDesktop.App.WPF There was no runtime pack available RuntimeIdentifier“win10-arm-aot”

I goto the project property page, set "Target Platform" to "x64", but no help at all. I check the readme file of WindowsAppSDK in github(https://github.com/microsoft/windowsappsdk), it said "work with WPF", so, how to fix the issue?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,927 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.