Visual Studio“目标框架”失踪 [英] Visual Studio "Target framework" missing

查看:149
本文介绍了Visual Studio“目标框架”失踪的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用.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 Community Edition。

I am using Visual Studio Community Edition.

推荐答案

您创建了错误的项目类型。您创建了 .Net标准类库

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

,但是您需要在 Windows桌面下创建普通的类库在新项目模板中

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

这篇关于Visual Studio“目标框架”失踪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆