How do I use my site's local nuget source?

  • Page Owner: Not Set
  • Last Reviewed: 2020-09-02

Nuget restore is causing my build to fail, what can I try to do to change that?


Answer

From Bob

Ok, make a branch, in that branch remove the Nuget.org line from the Nuget.config file, add this line instead: <add key="APTA-Azure-Feed" value="https://pkgs.dev.azure.com/BlendInteractive/ATPA/_packaging/APTA-Azure-Feed/nuget/v3/index.json" />

Note: We're still testing to see if this works.


Additional Posts

you can have multiple. So i have fallbacks as well.

<configuration>
  <packageSources>
    <add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
    <add key="EPiServer" value="https://nuget.episerver.com/feed/packages.svc/" />
    <add key="Blend Interactive" value="http://nuget.blendinteractive.com/nuget" />
    <add key="PlayLSI" value="https://playlsi.pkgs.visualstudio.com/LSIWebGitRepo/_packaging/PlayLSI/nuget/v3/index.json" />
  </packageSources>
</configuration>