-
-
Notifications
You must be signed in to change notification settings - Fork 68
.NET SDK
NetPad supports .NET 6 and later. You must have at least one of these SDKs installed to use NetPad.
🖱️ To change the selected SDK for a particular script, click the SDK
dropdown from the toolbar and select the SDK you want to use.
NetPad does not install the .NET SDK for you; management of installed SDKs is left to the user.
NetPad will attempt to automatically locate where you have installed the .NET SDK. First it will attempt to use the value from one of these environment variables:
DOTNET_ROOT
DOTNET_INSTALL_DIR
If not found, the following locations will be searched (in order):
Windows:
{HomeDirectory}\.dotnet
C:\Program Files\dotnet\x64
C:\Program Files\dotnet
Linux/macOS:
{HomeDirectory}/.dotnet
/usr/local/share/dotnet
/usr/share/dotnet
/usr/lib/dotnet
/usr/lib64/dotnet
/opt/dotnet
If it cannot find your .NET SDK installation in any of those locations it will attempt to execute dotnet
from your $PATH
and use it if it's found.
You can tell NetPad where your SDK is installed by going to Settings > General > Folders and adding the full path to your .NET SDK installation directory in the .NET SDK setting.