简体   繁体   English

如何在 Visual Studio 项目中访问其他 SDK

[英]How to get access to additional SDKs within a Visual Studio project

I am trying to have access to the following SDK within my VS C# Project Dependencies/SDKs...我正在尝试在我的 VS C# 项目依赖项/SDK 中访问以下 SDK...

Microsoft.AspNetCore.Asp (2.1.1) Microsoft.AspNetCore.Asp (2.1.1)

How do I install it?我该如何安装? Otherwise I have to install various Nuget libraries that are already accessible via that SDK.否则,我必须安装已经可以通过该 SDK 访问的各种 Nuget 库。

I know this because I have an existing VS solution with a project that has it.我知道这一点,因为我有一个现有的 VS 解决方案,其中有一个项目。 It's the same computer so it has to be Project level?它是同一台计算机,所以它必须是项目级别?

Add the reference to your csproj and restore:添加对csproj的引用并恢复:

dotnet add ./proj.csproj package Microsoft.AspNetCore.Asp -v 2.1.1
dotnet restore

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

相关问题 Visual Studio 2012中的SDK - SDKs in Visual Studio 2012 如何从Visual Studio中的项目解决方案中删除其他构建文件 - How to Delete Additional build files from the Project Solution in visual studio 如何在Visual Studio 2010中的项目文件夹中访问bin / debug中的文件? - How to access the files in bin/debug within the project folder in Visual studio 2010? 在Visual Studio中将其他名称空间导入为项目默认值 - Import additional namespace as project default in Visual Studio Visual Studio中是否有命令来使项目依赖于解决方案中的项目? - Is there a command in Visual Studio to get the projects dependent on a project within a solution? Visual Studio 2013-如何在解决方案中调试项目 - Visual Studio 2013 - How to debug a project within a solution 如何在Visual Studio的同一项目中制作多个程序文件 - How to Make Multiple Program Files within Same Project in Visual Studio 如何在Visual Studio 2008部署项目中获取项目的汇编版本 - How to get assembly version of a project in a visual studio 2008 deployment project 如何在Visual Studio解决方案中限制对一个项目的访问? - How to limit access to one project in a solution in Visual Studio? 阅读visual studio项目中的文本文档 - Read text document within visual studio project
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM