Regression in .NET SDK 6.0.100: Can no longer publish WinForms/WPF app for win-arm64 (NETSDK1082)
See original GitHub issue#19991 strikes again, but for 6.0.100!
After upgrading from .NET SDK 5.0.401 to 6.0.100 we can no longer publish a net5.0
WPF app for win-arm64
.
The dotnet publish
command fails with:
error NETSDK1082: There was no runtime pack for Microsoft.WindowsDesktop.App.WPF available for the specified RuntimeIdentifier ‘win-arm64’
Repro
- With both 64-bit .NET SDK 5.0.401 and 6.0.100 installed on a Windows 10 x64 machine…
- Run
dotnet new wpf
- Modify csproj to target
net5.0-windows
. - Create a
global.json
file with this content{ "sdk": { "version": "5.0.401", "rollForward": "patch", "allowPrerelease": false } }
- Run
dotnet publish -r win-arm64
. It succeeds. - Now replace
5.0.401
in the global.json file with6.0.100
. - Run
dotnet publish -r win-arm64
. It fails with:
> dotnet publish -r win-arm64
Microsoft (R) Build Engine version 17.0.0+c9eb9dd64 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.
Determining projects to restore...
Restored C:\temp\wpfapp\wpfapp.csproj (in 95 ms).
C:\Program Files\dotnet\sdk\6.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(427,5): error NETSDK1082: There was no runtime pack for Microsoft.WindowsDesktop.App.WPF available for the specified RuntimeIdentifier 'win-arm64'. [C:\temp\wpfapp\wpfapp.csproj]
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
NETSDK1045: The current .NET SDK does not support ...
This error occurs when the build tools can't find the version of the .NET SDK that's needed to build a project. This is...
Read more >The current .NET SDK does not support targeting .NET 6.0. ...
But I have tried every mentioned solution and didn't get resolved. I have a dotnet c# application. when I run the application I...
Read more >Support for the Upcoming .NET SDK 6.0
And when I clicked Manage SDK again, the version had reverted to 6.0. I can see that, as a result of changing the...
Read more >NET Core 6.0.7
Release 6.0.7 of .NET Core, released on 2022-07-12. versionsof.net gives an overview of all releases and versions of .NET Core.
Read more >"You must install .NET Desktop Runtime 6.0.4 (x64)" error
Instead of copying the executable out of the debug folder, use the Publish feature and select the "self contained" option.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fix should release tomorrow.
Do you mean this one: https://www.nuget.org/packages/Microsoft.WindowsDesktop.App.Runtime.win-arm64? I don’t believe we’ve had specific windows forms versions of the runtime packs, only the WindowsDesktop one that includes windows forms.