Different dotnet versions

I have developed dotnet on Manjaro for a long time, but I never actually installed different versions of the sdk.

I use the package dotnet-sdk-bin for this purpose, after I debugged this for ages some years ago.

Put after updating the package in the package manager, it seems like it only serves one dotnet version at the time. We now have both dotnet 8 and 9 projects at work.

Before I am trying to destroy my dotnet setup, is there anybody who is using different dotnet versions at the same time on Manjaro?

What is the easiest way to run both 8 and 9 on Manjaro?

See the pinned comment on AUR (en) - dotnet-core-bin

As I understand it

  • latest dotnet-host-bin
  • a number of runtimes

If you search AUR you find a number of sdk and runtimes available

I tend to keep my system and my code at the latest LTS - switching my code when next LTS arrives.

1 Like

Hi,
Thanks for your answer. I agree in the LTS-comment, but unfortunately, I am not the only one deciding.

Concerning the pinned comment: That actually makes sense. But is it actually possible to install multiple versions of older runtimes via the package manager, or do I need to build them myself by cloning the repo?

Maybe I am doing something wrong here? It only shows the version 9 package.

➜  ~ trizen -Q | grep dotnet
dotnet-host-bin 9.0.0.sdk100-1
dotnet-runtime-bin 9.0.0.sdk100-1
dotnet-sdk-bin 9.0.0.sdk100-1
dotnet-targeting-pack-bin 9.0.0.sdk100-1

➜  ~ trizen -Ss dotnet-runtime-bin 

aur/dotnet-runtime-bin 9.0.0.sdk100-1 [installed] [43+] [1.74%] [13 Nov 2024]
    The .NET Core runtime (binary)

God, nevermind. I have just found the answer. Its 8.0, not 8

Thanks for your help!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.