# Dotnet SDK

## Check if installed&#x20;

```
dotnet --version
```

{% hint style="info" %}
If dotnet SDK is not installed the above command will not be recognised! This command will not work if even if dotnet runtime is installed!  In other words, it needs an SDK and runtime is not considered!
{% endhint %}

{% hint style="warning" %}
The above command only shows the lastest installed, not all. There could be more in\
C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App
{% endhint %}

## List all SDKS and their paths

```
dotnet --info
```

## Install dotnet SDK

```
winget install Microsoft.DotNet.SDK.7
```

{% hint style="info" %}
Around 200 MB download size via winget and 870 MB disk space after installation!
{% endhint %}
