Visual Studio 2017参考管理器为空 [英] Visual Studio 2017 Reference Manager is empty

查看:64
本文介绍了Visual Studio 2017参考管理器为空的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Visual Studio 2017社区版中添加对System.Configuration程序集的引用.我的目标是.net 4.5版本和.net classic.但是,我在引用管理器中找不到任何程序集.

I'm trying to add a reference to System.Configuration assembly in Visual Studio 2017 Community edition. I'm targeting .net 4.5 version and .net classic. However, I can't find any assemblies in reference manager.

我在这里错过了什么吗?标准框架程序集在哪里?框架标签为空是否正常?

Am I missing something here? Where are the standard framework assemblies? Is it normal that Framework tab is empty?

推荐答案

定位.NETStandard 1.4

Targeting .NETStandard 1.4

这不是".net classic",您选择了自VS2017以来可用的新项目模板..NETStandard与旧的PCL非常相似,它可以帮助您创建可在多个平台上使用的可移植类库.通过PCL的改进,您不再需要选择要支持的特定平台.作为标准",您可以可以选择的所有框架部件均已包括在内,这就是列表为空的原因.PCL的工作方式相同.

That is not ".net classic", you picked a new project template that is available since VS2017. .NETStandard is pretty similar to PCL of old, it helps you create a portable class library that is usable on multiple platforms. An improvement over PCL, you no longer have to select which specific platforms you want to support. Being "standard", all framework assemblies you could pick are already included, that's why the list is empty. PCL worked the same way.

请注意,周围有很多类库项目模板,并且选择错误的模板很容易做到.您必须选择一个名为类库(.NET Framework)"的类,该类针对经典的桌面版本,并为您提供一个非空列表供您选择.

Beware that there are a lot of Class Library project templates around and choosing the wrong one is easy to do. You'll have to pick the one named "Class Library (.NET Framework)", that's the one that targets the classic desktop version and gives you a non-empty list to choose from.

这篇关于Visual Studio 2017参考管理器为空的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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