Skip to content

Installing .NET SDK

The .NET SDK is a required dependency for running Hagicode. After installation, you can use Hagicode.

Section titled “Method One: Official Installer (Recommended)”
  1. Visit the .NET Official Website
  2. Select .NET 10 version
  3. Download the SDK (not Runtime) Windows installer (.exe or .msi file)
  4. Double-click to run the installer
  5. Follow the installation wizard prompts to complete installation:
    • Accept the license agreement
    • Choose installation path (default is fine)
    • Click “Install” to start installation
  6. After installation completes, click “Close”

Open PowerShell or Command Prompt and run:

Terminal window
winget install Microsoft.DotNet.SDK.10

If you already have Chocolatey installed:

Terminal window
choco install dotnet-10-sdk

After installation, verify that .NET SDK is installed correctly:

Terminal window
# Check .NET SDK version
dotnet --version
# View detailed SDK information
dotnet --info

If the dotnet command is not available after installation:

  1. Restart Command Prompt or PowerShell
  2. If still not available, manually add .NET to PATH:
    • Search for “Environment Variables” and open “Edit system environment variables”
    • Click “Environment Variables”
    • Find “Path” in “System variables” and click “Edit”
    • Add the .NET SDK installation path (default: C:\Program Files\dotnet\)
    • Click “OK” to save changes

If the command is not available after installation:

  1. Restart Terminal
  2. If installed via Homebrew, run:
    Terminal window
    eval "$(/opt/homebrew/bin/brew shellenv)"
  3. Manually add to PATH (in ~/.zshrc or ~/.bash_profile):
    Terminal window
    export DOTNET_ROOT=$HOME/.dotnet
    export PATH=$PATH:$DOTNET_ROOT:$DOTNET_ROOT/tools

If you encounter permission errors when running dotnet:

Terminal window
# Ensure the installation path is executable
sudo chmod +x $HOME/.dotnet/dotnet
# If installed via system package manager, reinstall
sudo apt-get install --reinstall dotnet-sdk-10.0

If download speeds are slow, you can use the following mirror sources:

Visit the above addresses and select the version you need to download.

If you need to uninstall .NET SDK:

  1. Open “Control Panel” > “Programs and Features”
  2. Find “Microsoft .NET SDK - 10.0.0”
  3. Right-click and select “Uninstall”

Or use command line:

Terminal window
# Uninstall via winget
winget uninstall Microsoft.DotNet.SDK.10
# Uninstall via Chocolatey
choco uninstall dotnet-10-sdk