Skip to content

Instantly share code, notes, and snippets.

@sailro
Created November 19, 2025 19:45
Show Gist options
  • Select an option

  • Save sailro/726c8d98c2e0f92a1df21051b89e636b to your computer and use it in GitHub Desktop.

Select an option

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
#!/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
@sailro
Copy link
Author

sailro commented Nov 19, 2025

Tested with:

  • Ubuntu 24.04.3 LTS
  • Unity 6000.2.13f1, Visual Studio Editor 2.0.25
  • VSCode 1.106.1, C# 2.100.11, C# Dev Kit 1.80.7, .NET Install Tool 2.3.7, Unity Ext 1.1.3
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment