简体   繁体   中英

How to add Nuget to visual studio

I installed a telekit template for web chatting, it messed up my nuget package folder destination, so I lost the ability to add current/future nuget to my visual studio solutions. So I reinstalled visual studio 2019. Now am trying to add a Nuget package "Microsoft.AspNet.SignalR" to my visual studio. Any advice?

How to add Nuget to visual studio

You can first do these operations to clean your environemnt:

1) close VS, delete the global nuget.config under %APPDATA%\Roaming\.nuget\

2) restart VS, clean nuget caches or delete all nuget caches under C:\Users\xxx(current user account)\.nuget\packages

Then, open your asp.net project in VS IDE and right-click on it and select Manage Nuget Packages

And you can follow mys steps by the below picture and note to select the nuget.org nuget package source.

在此处输入图像描述

Then you will install such package in your project.

Besides , if you face any error when you install nuget packages, you can describe the issue in detailed so that we can troubleshoot the issue more qucikly.

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