Visual Studio“目标框架"丢失的 [英] Visual Studio "Target framework" missing
问题描述
我正在尝试使用 .NET Framework 4.5.2 编译我的 .NET Standard 类库项目.但是,正如您在我的屏幕截图中看到的,4.5.2 版未显示在提供的目标框架列表中:
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:
此外,当我点击安装其他框架...时,我仍然没有选择4.5.2的选项.
Furthermore, when I click Install other frameworks..., I am still not given the option of choosing 4.5.2.
我使用的是 Visual Studio 社区版.
I am using Visual Studio Community Edition.
推荐答案
您创建了错误的项目类型.您创建了一个 .Net 标准类库
You created the wrong project type. You created a .Net Standard Class Library
但是需要在新项目模板中的Windows Desktop
下创建一个普通的Class Library
but you need to create a normal Class Library
under Windows Desktop
in the new project template
这篇关于Visual Studio“目标框架"丢失的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!