.NET Framework

winget install Microsoft.DotNet.Framework.DeveloperPack_4 -v [4.X.X]

.NET

winget install Microsoft.DotNet.SDK.[X]