vscode change dotnet version
(Make sure you are in the root directory were you want to create your project)
1: Run "dotnet --list-sdks"
2: Run "dotnet new globaljson"
3: Change the version in global.json to the one you want that
were displayed from the first command. Then save.
4: Run "dotnet --version" to check your version.
If you can't see the SDK you want then visit https://dotnet.microsoft.com/en-us/download/dotnet
and download the SDK you want.