question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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 with 6.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]

Repro solution

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
marcpopMSFTcommented, Dec 13, 2021

Fix should release tomorrow.

0reactions
marcpopMSFTcommented, Oct 17, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found