cannot search for NuGet Packages in visual studio 2019 [duplicate]

☆樱花仙子☆ 提交于 2020-06-25 21:09:07

问题


Cannot search for online NuGet packages in visual studio 2019. Default package source is offline and no option for adding online package source. Searched through the internet. Wasn't able to find the solution. Please check the image below.

Screenshot


回答1:


If you click on the gear to the right of the Package Source drop down, it'll take you into the options for Package Sources. You can then add nuget.org as a package source. For example, I have:

Name: api.nuget.org
Source: https://api.nuget.org/v3/index.json




回答2:


Change the Package Source to nuget.org, if is not available add it https://api.nuget.org/v3/index.json



来源:https://stackoverflow.com/questions/55728564/cannot-search-for-nuget-packages-in-visual-studio-2019

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!