You are not logged in.
Hello,
I'm having some trouble installing updates for a few packages that rely on dotnet. I have aspnet-runtime and dotnet-sdk installed, and the output of dotnet --list-runtimes is as follows:
Microsoft.AspNetCore.App 6.0.36 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.21 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 9.0.9 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.36 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.21 [/usr/share/dotnet/shared/Microsoft.NETCore.App]However, when I try to install the updates to 3 of my installed AUR packages I get the following error:
You must install or update .NET to run this application.
App: /usr/share/dotnet/sdk/9.0.110/dotnet.dll
Architecture: x64
Framework: 'Microsoft.NETCore.App', version '9.0.9' (x64)
.NET location: /usr/share/dotnet/
The following frameworks were found:
6.0.36 at [/usr/share/dotnet/shared/Microsoft.NETCore.App]
8.0.21 at [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Learn more:
https://aka.ms/dotnet/app-launch-failed
To install missing framework, download:
https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=9.0.9&arch=x64&rid=arch-x64&os=arch
==> ERROR: A failure occurred in prepare().
Aborting...The outputs of these seem to contradict each other as --list-runtimes shows 9.0.9 installed, however it seems makepkg can't see it for some reason. Any advice would be appreciated.
Offline
In my experience this happens when the version of "dotnet-sdk" required is ahead of the version of available in the official repositories. 9.0.9 is a fair bit behind the latest "stable" version which, based on the official Microsoft site, is 9.0.306. Historically I've used the AUR package dotnet-sdk-bin to fix such issues. Hopefully that helps!
Offline
Thank you! That seems to have done it. The packages updated successfully this time around. Looks like it was looking specifically for at least 9.0.9 in Microsoft .NETCore.App and not in Microsoft.AspNetCore.App and dotnet-sdk-bin successfully added 9.0.10 to .NETcore.App. For anyone who might be looking this up later, the apps in question that I ran into this on were Sonarr-Develop, Radarr, and Jackett.
Offline
Does my fork of dotnet-core which includes updating to 9.0.10 switch-to-llvm20-9.0.10, also work for you?
Offline