简体   繁体   English

如何将 Nuget 添加到 Visual Studio

[英]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. 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.所以我重新安装了 Visual Studio 2019。现在我正在尝试将 Nuget package“Microsoft.AspNet.SignalR”添加到我的 Visual Studio。 Any advice?有什么建议吗?

How to add Nuget to visual studio如何将 Nuget 添加到 Visual Studio

You can first do these operations to clean your environemnt:您可以先执行以下操作来清理您的环境:

1) close VS, delete the global nuget.config under %APPDATA%\Roaming\.nuget\ 1)关闭VS,删除%APPDATA%\Roaming\.nuget\下的全局nuget.config

2) restart VS, clean nuget caches or delete all nuget caches under C:\Users\xxx(current user account)\.nuget\packages 2)重启VS, 清理nuget缓存或删除C:\Users\xxx(current user account)\.nuget\packages下的所有nuget缓存

Then, open your asp.net project in VS IDE and right-click on it and select Manage Nuget Packages然后,在VS Z581D6381D6381F35E4F35E4F9D77201ACF87B364Z中打开asp.net项目

And you can follow mys steps by the below picture and note to select the nuget.org nuget package source.您可以按照下面的图片按照我的步骤操作,并注意 select nuget.org nuget ZEFE6B07A8D6034A788 来源。

在此处输入图像描述

Then you will install such package in your project.然后您将在您的项目中安装这样的 package。

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.此外,如果您在安装 nuget 软件包时遇到任何错误,您可以详细描述问题,以便我们更快地解决问题。

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

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