Adding a custom package source to Visual Studio Code

Does anyone know how to add a custom package source to Visual Studio Code ?

eg. I would like to add https://www.myget.org/F/aspnet-contrib/api/v3/index.json as the source of the package and manage these packages through project.json.

+6
source share
2 answers

To add to the answer, adding nuget.config to the project solves it for the project. Adding to the root is fine. The configuration may look like this:

 <?xml version="1.0" encoding="utf-8"?> <configuration> <packageSources> <add key="MyGet" value="https://www.myget.org/F/aspnet-contrib/api/v3/index.json" /> </packageSources> </configuration> 
+9
source

You can add the NuGet.config file and specify the source of the package there. Some reference documents: https://docs.microsoft.com/en-us/nuget/schema/nuget-config-file

+2
source

Source: https://habr.com/ru/post/1013565/


All Articles