Skip to main content

Accessing Custom NuGet Feed

Visual Studio NuGet UI

  1. Select Project → Manage Nuget Packages

Upload In ProgressUntitled

  1. Click on Setting

Untitled

  1. Select Package Sources, Click Add, and set sources. Then Click Ok.

Url : https://test-proget.agatedev.net/nuget/nuget-proxy/v3/index.json

Untitled

  1. Uncheck nuget.org because Nuget Agate will try to get data from nuget.org too.

Direct Edit Nuget.Config

  1. Find Nuget.Config file on your project root directory. If there is none, create a new one.

  2. Add / edit Package Source Section

    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
    	<!--... other config section-->
    	<packageSources>
    		<!--change url to agate feed url-->
        <add key="Agate NuGet" value="https://nuget-global.agate.id/v3/index.json" />
        <add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
      </packageSources>
    	<!--... other config section-->
    </configuration>
    
  3. to disable package resolving from [nuget.org](http://nuget.org) feed

    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
    	<!--... other config section-->
    	<disabledPackageSources>
        <add key="nuget.org" value="true" />
      </disabledPackageSources>
    	<!--... other config section-->
    </configuration>