Visual Studio “Target framework” missing

2019-05-17 18:09发布

问题:

I am trying to compile my .NET Standard class library project with .NET Framework 4.5.2. However, as you can see in my screenshot, version 4.5.2 is not shown in the offered list of target frameworks:

Furthermore, when I click Install other frameworks..., I am still not given the option of choosing 4.5.2.

I am using Visual Studio Community Edition.

回答1:

You created the wrong project type. You created a .Net Standard Class Library

but you need to create a normal Class Library under Windows Desktop in the new project template



回答2:

Find this in your apps and features menu and try to uninstall. Then install it back and take a look what you got.