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.

`dotnet new android` attempts to restore Microsoft.AspNetCore.App.Runtime.linux-arm64

See original GitHub issue

If you install .NET 6 RC1 and the Android workload, we are now using **FromWorkload** so a NuGet.config should no longer be needed when building Android projects.

Unfortunately, you get a different error now when testing this:

error NU1102: Unable to find package Microsoft.AspNetCore.App.Runtime.linux-arm64 with version (= 6.0.0-rc.1.21417.2)

Build log: msbuild.zip

I found I could workaround the problem with:

<Target Name="_RemoveLinuxFrameworkReferences"
    AfterTargets="ProcessFrameworkReferences">
  <ItemGroup>
    <_ProblematicRIDs Include="linux-arm;linux-arm64;linux-x86;linux-x64" />
    <PackageDownload Remove="Microsoft.AspNetCore.App.Runtime.%(_ProblematicRIDs.Identity)" />
    <PackageDownload Remove="Microsoft.NETCore.App.Host.%(_ProblematicRIDs.Identity)" />
  </ItemGroup>
</Target>

I will probably put this workaround in the Android workload for now.

This is probably related to the RID graph. I tried making an adjustment to the RID graph in the past, but they wouldn’t accept this change:

https://github.com/dotnet/runtime/pull/45927

Issue Analytics

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

github_iconTop GitHub Comments

0reactions
marcpopMSFTcommented, Mar 23, 2022

@jonathanpeppers closing to be tracked by newer discussions we have going on. If this is still a separate issue, feel free to reactivate.

Read more comments on GitHub >

github_iconTop Results From Across the Web

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 >
"Missing" Microsoft.AspNetCore.App.Runtime.win-arm & ...
I've tried all of the following different ways so far: removed all VS versions and .net SDKs from system; rebooting; (re)installing only latest...
Read more >
Microsoft.AspNetCore.App.Runtime.linux-arm64 7.0.10
Version Downloads Last updated 8.0.0‑preview.7.23375.9 1,347 8 days ago 8.0.0‑preview.6.23329.11 3,279 a month ago 8.0.0‑preview.5.23302.2 1,672 2 months ago
Read more >
NET Core 5.0.5
202 resolves an issue where NuGet restore fails on Linux due to expired NuGet certificates and unfortunate interactions with changes made to root...
Read more >
Solution to Visual Studio 2022 messing up ...
NET 5 and .NET Standard 2 projects couldn't be loaded anymore in Visual Studio 2019. The error shown when attempting to load the...
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