简体   繁体   中英

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...

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.

I know this because I have an existing VS solution with a project that has it. It's the same computer so it has to be Project level?

Add the reference to your csproj and restore:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM