-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previous Setup for .Netnet 8 install somehow removed .Net6 this setup properly setups the use of both and insures the latest versions of 6 & 8 are update to date.
- Loading branch information
Showing
3 changed files
with
14 additions
and
22 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,12 @@ | ||
#!/bin/bash | ||
|
||
# Get latest .NET 6 version | ||
dotnet6_version=$(curl -s https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/6.0/releases.json | grep -Po '(?<="latest-sdk": ")[^"]*') | ||
# Get latest .NET 8 version | ||
dotnet8_version=$(curl -s https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/8.0/releases.json | grep -Po '(?<="latest-sdk": ")[^"]*') | ||
|
||
curl -SL --output dotnet-install.sh https://dot.net/v1/dotnet-install.sh && \ | ||
chmod +x dotnet-install.sh && \ | ||
./dotnet-install.sh --version $dotnet6_version --install-dir /usr/share/dotnet && \ | ||
./dotnet-install.sh --version $dotnet8_version --install-dir /usr/share/dotnet && \ | ||
rm dotnet-install.sh |
This file was deleted.
Oops, something went wrong.