dotnet plugin for the asdf version manager. This repo is inspired by asdf-dotnet-core by @emersonsoares.
⚠️ Currently, as reported in #6, there could be some issues with csharp-ls failing to detect the dotnet installation.
⚠️ If you are using different dotnet versions for dotnet tools, you still need to manually set DOTNET_ROOT.
bash,curl,grep,sed,git: generic POSIX utilities.
Installing this plugin:
asdf plugin add dotnet
# or
asdf plugin add dotnet https://github.com/hensou/asdf-dotnet.gitInstalling a dotnet version:
# Show all installable versions
asdf list all dotnet
# Install specific version
asdf install dotnet latest
# Set a version globally (on your ~/.tool-versions file)
asdf set -u dotnet latest
# Now dotnet commands are available
dotnet --versionCheck asdf readme for more instructions on how to install & manage versions.
If you need to manually:
- update/set
DOTNET_ROOTvariable - update/set
MSBuildSDKsPathvariable - disable telemetry (i.e. set
DOTNET_CLI_TELEMETRY_OPTOUTto 1)
then, according to your shell, execute one of the following commands:
For bash, use:
. ~/.asdf/plugins/dotnet/set-dotnet-env.bash
For zsh shell, instead use:
. ~/.asdf/plugins/dotnet/set-dotnet-env.zsh
For fish shell, instead use:
source ~/.asdf/plugins/dotnet/set-dotnet-env.fish
For xonsh shell, instead use:
source ~/.asdf/plugins/dotnet/set-dotnet-env.xsh
Contributions of any kind welcome! See the contributing guide.