Created
November 19, 2025 19:45
-
-
Save sailro/726c8d98c2e0f92a1df21051b89e636b to your computer and use it in GitHub Desktop.
dotnet SDK installation for proper slnx support with VSCode/C# Dev Kit/Unity on Ubuntu
This file contains hidden or 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
| #!/usr/bin/env bash | |
| # install the supported SDK 9.0 (9.0.112 when writing this script) | |
| sudo add-apt-repository -y ppa:dotnet/backports | |
| sudo apt-get update | |
| sudo apt-get reinstall -y dotnet-sdk-9.0 | |
| # download the compatible SDK 9.0, required for slnx (9.0.205 when writing this script) | |
| wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh | |
| chmod +x ./dotnet-install.sh | |
| ./dotnet-install.sh --channel 9.0.2xx | |
| # merge SDKs | |
| sudo cp -R ./.dotnet/* /usr/lib/dotnet/ | |
| # list available sdks | |
| dotnet --list-sdks |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tested with: