-
Notifications
You must be signed in to change notification settings - Fork 851
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8ad4106
commit b97ff0e
Showing
3 changed files
with
34 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
sudo apt remove --purge dotnet* | ||
sudo apt remove --purge aspnetcore* | ||
|
||
rm -f /usr/bin/dotnet | ||
sudo ln "$HOME/.dotnet/dotnet" /usr/bin/dotnet | ||
|
||
wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh | ||
|
||
# https://dotnetcli.azureedge.net/dotnet/release-metadata/releases-index.json | ||
chmod +x ./dotnet-install.sh | ||
./dotnet-install.sh --version 9.0.101 --channel LTS | ||
|
||
[[ "${ADDITIONAL_RUNTIME:-}" ]] \ | ||
&& echo "Additional Runtime needed: $ADDITIONAL_RUNTIME" \ | ||
&& ./dotnet-install.sh --version "$ADDITIONAL_RUNTIME" --runtime dotnet --channel LTS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters