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.

Publish of WPF app fails for ARM64 - "There was no runtime pack"

See original GitHub issue

Using .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:

 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:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:24 (15 by maintainers)

github_iconTop GitHub Comments

3reactions
sr55commented, Jul 28, 2021

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:

<RuntimeIdentifier>win-arm64</RuntimeIdentifier>
**<SelfContained>false</SelfContained>**                                 
<PublishSingleFile>True</PublishSingleFile>
**<PublishReadyToRun>false</PublishReadyToRun>**

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.

2reactions
AArnottcommented, Nov 12, 2021

@wli3 Why was this closed? It still repros on the 6.0.100 SDK. I opened #22565 to track.

Read more comments on GitHub >

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

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