Visual Studio 2017 only has offline Nuget Packages for .NET Core 2.x. How to get online packages?

前端 未结 2 1964
盖世英雄少女心
盖世英雄少女心 2021-01-07 20:18

I want to get NuGet Packages from Nuget online, but Visual Studio is only giving me \'Microsoft Visual Studio Offline Packages\' as an option.

I have tried

2条回答
  •  不要未来只要你来
    2021-01-07 20:29

    I think the answer is:

    1. Right click on the project and choose Manage NuGet packages.

    1. Click on the settings cog in the top right corner of the Nuget packages tab.

    1. In the settings dialog (as shown in the screenshot in the question), click on the + button.
    2. Give the new source a name and a source of https://api.nuget.org/v3/index.json.

    This appears to work for me

提交回复
热议问题