`dotnet new android` attempts to restore Microsoft.AspNetCore.App.Runtime.linux-arm64
See original GitHub issueIf 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:
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (12 by maintainers)
Top 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 >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 think this is fixed, but I’ll try removing this target to be sure:
https://github.com/xamarin/xamarin-android/blob/5efda9d6923bb2478a2efb2e17104791a169ec1f/src/Xamarin.Android.Build.Tasks/Microsoft.Android.Sdk/targets/Microsoft.Android.Sdk.AssemblyResolution.targets#L17-L24
@jonathanpeppers closing to be tracked by newer discussions we have going on. If this is still a separate issue, feel free to reactivate.