dn-vm / dnvm

dnvm is a command-line interface for installing and updating different dotnet SDKs
https://dnvm.net
MIT License
59 stars 8 forks source link

Is there a way to switch dotnet versions? #143

Closed sp-adrian-simbulan closed 3 months ago

sp-adrian-simbulan commented 6 months ago

I've this tool to install multiple versions of dotnet locally. I was wondering what the command was to switch between them?

agocke commented 3 months ago

The dotnet host "multiplexes" across multiple versions by default. You can either use a global.json file to lock a particular directory to one version, if that's what you want, or you can just let it choose the newest SDK.

You can also use dnvm to install to multiple directories if you want to have them fully separated. The -s command to install will do that. Then you can use dnvm select to switch between those directories.