VS 2017中NUGET和SDK之间的区别 [英] Difference between NUGET and SDK in VS 2017

查看:691
本文介绍了VS 2017中NUGET和SDK之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我刚刚开始学习.NET,并且我正在第一个项目中

I just started learning .NET and I am on my first project

我在ASP.NET核心项目VS 2017的Dependencies文件夹中注意到它们具有NuGet和SDK.两者有什么区别?

I noticed in ASP.NET core project VS 2017  Dependencies folder they have NuGet and SDK . What is the difference between these two? 

谢谢

推荐答案

你好,娜塔莎,

Hi Natasha,

感谢您在MSDN论坛中发帖.

Thank you for posting in MSDN forum.

通常来说,NuGet是一个用于管理dll和程序集的工具,SDK封装得很好.

Generally speaking, NuGet is a tool that manages dlls and assemblies, SDK is encapsulated well.

Visual Studio 2015需要安装NET Core工具Preview 2.这使得VS2015可以与project.json一起使用.

Visual Studio 2015 needs to install the NET Core tools Preview 2  which makes VS2015 work with project.json.

Visual Studio 2017 .NET Core支持(包括用于新的csproj文件的工具)已包含在Visual Studio 2017中,您创建的任何新的.NET Core应用程序将自动包含一个csproj文件.如果您在VS2017中打开现有应用程序(带有project.json文件) 它也会被升级.

Visual Studio 2017 .NET Core support (including tools for the new csproj file) is baked in to Visual Studio 2017, Any new .NET Core apps you create will be automatically include a csproj file. If you open an existing app (with a project.json file) in VS2017 it will also be upgraded.

但是,鉴于MS删除了project.json并且不会继续支持它,这似乎不是一个长期选择,您需要将SDK与其他工具(例如命令行)一起使用或Visual Studio Code)或进行切换 到Visual Studio 2017.

However, given that MS has dropped project.json and won’t be supporting it going forward, this doesn’t seem like a long-term option and you will need to either use the SDK alongside other tools (e.g. command line or Visual Studio Code) or make the switch to Visual Studio 2017.

摘要:

.NET Core图片开始成形.

The .NET Core picture is beginning to take shape.

您最好的选择是使用最新版本的SDK,如果可以(或坚持使用命令行和其他编辑器,如VS Code),则采用Visual Studio 2017,并使用您所使用的最高版本的.NET Core运行时.能够(1.0.x或1.1).

Your best bet is to use the latest version of the SDK, adopt Visual Studio 2017 if you can (or stick to command line and other editors such as VS Code) and use the highest version of the .NET Core runtime that you’re able to (1.0.x or 1.1).

最好的问候


这篇关于VS 2017中NUGET和SDK之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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