Publish of WPF app fails for ARM64 - "There was no runtime pack"
See original GitHub issueUsing .NET 6 Preview 1, trying to publish a WPF app for ARM64 fails with
1>There was no runtime pack for Microsoft.WindowsDesktop.App available for the specified RuntimeIdentifier 'win-arm64'.
Repro:
- Clone https://github.com/NuGetPackageExplorer/NuGetPackageExplorer
- Checkout the
arm64-support
branch. dotnet publish -c release .\PackageExplorer\NuGetPackageExplorer.csproj /p:PublishProfile=Properties\PublishProfiles\WinARM64.pubxml
pwsh> dotnet publish -c release .\PackageExplorer\NuGetPackageExplorer.csproj /p:PublishProfile=Properties\PublishProfiles\WinARM64.pubxml
Microsoft (R) Build Engine version 16.9.0-preview-21103-02+198f3f262 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.
Determining projects to restore...
Restored D:\dev\NuGetPackageExplorer\PackageExplorer\NuGetPackageExplorer.csproj (in 801 ms).
Restored D:\dev\NuGetPackageExplorer\PackageViewModel\PackageViewModel.csproj (in 801 ms).
Restored D:\dev\NuGetPackageExplorer\Core\Core.csproj (in 1.07 sec).
1 of 4 projects are up-to-date for restore.
You are using a preview version of .NET. See: https://aka.ms/dotnet-core-preview
C:\Program Files\dotnet\sdk\6.0.100-preview.1.21103.13\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(389,5): error NETSDK1082: There was no runtime pack for Microsoft.WindowsDesktop.App available for the specified RuntimeIdentifier 'win-arm64'. [D:\dev\NuGetPackageExplorer\Core\Core.csproj]
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:24 (15 by maintainers)
Top Results From Across the Web
How to fix "There was no runtime pack for Microsoft ...
NET update and causes the following error to be thrown: “There was no runtime pack for Microsoft.AspNetCore.App available for the specified ...
Read more >There was no runtime pack for Microsoft.AspNetCore.App ...
The error message seems to be publish error,did you make this error when you publish to IIS?If so,it seems to be a know...
Read more >Started to get "This project is targeting a version of .NET ...
I'm getting this same issue with ASP.Net Core 3.1. The solution has been fine for two years and now it want's to install...
Read more >Cannot debug net6.0-macos Apps - Developer Community
This is a regression. I can no longer debug net6.0-macos apps. It also fails for net6.0-maccatalyst apps. When I hit debug, the following ......
Read more >Unable to initialize .net WPF Runtime/Maps SDK 200...
I have a working WPF application and deployment that is currently on .net framework 4.8 / ArcGIS Runtime 100.15. I'm upgrading it to...
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
I ran into this issue as well however I’ve now managed to get past it. I’m using dotnet publish with a defined profile.
In my profile file, I have the following:
The two highlighted, have to be set to false. Makes sense I guess but the error is very unintuitive.
I also got caught out with one of my dependencies hooking a .NET Framework DLL (which is a no-go) but alas, different issue but something to watch out for too 😃
Hopefully this is helpful to some.
@wli3 Why was this closed? It still repros on the 6.0.100 SDK. I opened #22565 to track.