Click here to Skip to main content
15,886,083 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using Visual Studio version 16.11.14

when I run cmd -- I see the version 5.0
C:\Users\admin>dotnet --version
5.0.408

However when I see the project properties and see the Target Framework, I do not see 5.0 in the list.

How do I get in the list?


What I have tried:

I tried by clicking on "Install other framework" and downloaded sdk 86 and installed it on my windows pc.
Posted
Updated 12-May-22 22:22pm

The dotnet command manages and installs the components of .NET Core. The framework versions are installed via Visual Studio SDK packages. I think the latest framework version is 4.8.
 
Share this answer
 
Did not check VS 16, but 17.2 does have some "stupidity involved" as far as I can see.

You can't get a link to add more versions to target in the dialog where you create projects. You do however get it if you create a project using one of the existing versions - then right click the project and select Properties. Then you get a link to this page:
.NET SDKs downloads for Visual Studio[^]

No idea why you would download x86 in 2022 - do you really have a 32 bit OS?
 
Share this answer
 
When you create a new solution in Visual Studio 2019 you must decide which framework you want to use as target.

e.g.

WPF Application
A project for creating a .NET Core WPF Application

You can choose between the installed .NET Core SDKs
e.g. .NET Core 3.1 or .NET Core 5

vs

WPF App (.NET Framework)
Windows Presentation Foundation client application

You can choose between the installed .NET Framework SDKs
e.g. .NET Framework 4 or .NET Framework 4.8

1) There is no .NET Framework 5!
2) You cannot change a project from .NET Framework to .NET Core!
3) The difference between .NET Framework and .NET core is described e.g. here .NET Core vs .NET Framework - What’s The Difference? - InterviewBit[^]

The maximum version of .NET Core you can use in Visual Studio 2019 is .NET Core 5
 
Share this answer
 
v2
Comments
Maciej Los 13-May-22 16:37pm    
5ed!
TheRealSteveJudge 16-May-22 4:47am    
Thank you!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900