简体   繁体   English

如果库的目标是.NET Standard 2.0,那么我是使用Visual Studio 2017的唯一选择吗?

[英]If a library is targeting .NET Standard 2.0 is my only option to use Visual Studio 2017?

If I am using a library that aims to only target .Net Standard 2.0 and I am using the .NET Framework (not .NET Core) version of the library which is 4.61 ( Reference Microsoft ) 如果我正在使用针对.Net Standard 2.0的库, 并且我正在使用该库的.NET Framework(不是.NET Core)版本,该版本是4.61( 参考Microsoft

Am I now "required" to have Visual Studio 2017 15.3 to use this? 我现在是否需要Visual Studio 2017 15.3才能使用它? Or am I still able to use Visual Studio 2015 considering that I only want to use .NET Framework 4.61? 还是考虑到我只想使用.NET Framework 4.61,我仍然可以使用Visual Studio 2015吗?

So following on from where @Kobi put me on the right path... 因此,接下来是@Kobi让我走上正确道路的地方...

If you see the comment by Appu George it should be possible to consume a .NET Standard 2.0 .NET Framework within VS2015 if you have: 如果您看到的评论APPU乔治 应该是可能的,如果你要消耗中VS2015一个.NET标准.NET Framework 2.0的:

@Kobi if you want to add the above to your answer I would be happy to mark that as the accepted answer. @Kobi如果您想将以上内容添加到您的答案中,我很乐意将其标记为已接受的答案。

It should work for you. 它应该为您工作。 I didn't find official documentation, but I did find some comments. 我没有找到官方文档,但确实找到了一些评论。

Immo Landwerth , product manager at Microsoft, 2017-08-14 (emphasis added): 微软产品经理Immo Landwerth ,2017年8月14日(添加了重点):

Consumption is, but you need an updated NuGet client which AFAIK will ship soon . 消耗量很大,但是您需要一个更新的NuGet客户端,AFAIK将很快发布 If you want to build .NET Standard 2.0 libraries you need to use VS 2017 (15.3). 如果要构建.NET Standard 2.0库,则需要使用VS 2017(15.3)。 You could, however, also just use the command line until you can upgrade your VS. 但是,您也可以只使用命令行,直到可以升级VS。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 当前.NET SDK在Visual Studio 2017更新15.9.3中不支持定位.NET Standard 2.0错误,已安装.NET Core 2.2.1 SDK - The current .NET SDK does not support targeting .NET Standard 2.0 error in Visual Studio 2017 update 15.9.3, .NET Core 2.2.1 SDK installed 如何将 .net 标准 2.0 安装到 Visual Studio 2017 中 - How to install .net standard 2.0 into Visual studio 2017 Visual Studio 2017项目的目标是.NET Framework 4.7版 - Visual Studio 2017 project is targeting .NET Framework version 4.7 如何在Visual Studio 2017中添加.Net框架4.6.1类库而不是.Net标准? - How to add .Net framework 4.6.1 Class Library instead of .Net standard in Visual Studio 2017? 如何从Visual Studio 2017中的.NET Framework 4.5控制台应用程序引用.NET标准库? - How Do You Reference a .NET Standard Library from a .NET Framework 4.5 Console Application in Visual Studio 2017? Visual Studio 2017 不会在 .NET Standard 库中加载 .NET Framework 引用 - Visual Studio 2017 won't load .NET Framework references in .NET Standard library 使用 Visual Studio 2017 以 .NET Framework 2.0(不是 .NET Core 2.0)为目标 - Target .NET Framework 2.0 (not .NET Core 2.0) with Visual Studio 2017 如何在 Visual Studio 中从我的 .NET 框架项目中定位 .NET 标准 2.0? - How do I target .NET Standard 2.0 from my .NET Framework project in Visual Studio? 使用Visual Studio 2017的Asp Net Core 2.0的Crystal报表 - Crystal Report for Asp Net Core 2.0 With Visual Studio 2017 如何在 Visual Studio 2017 中为 Python 应用程序启用我自己的 .Net 库的智能感知? - How to enable Intellisense of my own .Net library for a Python application in Visual Studio 2017?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM