tag:help.appveyor.com,2012-11-13:/discussions/questions/2859-nuget-source-feed-orderAppVeyor: Discussion 2018-08-25T02:16:16Ztag:help.appveyor.com,2012-11-13:Comment/414801152016-12-13T18:43:10Z2016-12-13T18:43:10ZNuget source feed order<div><p>Hi Michael,</p>
<p>You can try re-adding nuget.org source like this (I'm still not
sure in what order nuget.exe checks the feeds, but presume it's the
same order as displayed by <code>nuget sources list</code>
command):</p>
<pre>
<code>nuget sources remove -name nuget.org
nuget sources add -name nuget.org -source https://www.nuget.org/api/v2</code>
</pre></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/414801152017-03-30T15:20:15Z2017-03-30T15:20:15ZNuget source feed order<div><p>Hi Feodor,</p>
<p>I have finally managed to try this solution but this does not work as expected. It seems that nuget.org is not removed.</p>
<p>Here is what I tried</p>
<p>1: Remove source with nuget.org and add it again at then end<br>
<a href="https://ci.appveyor.com/project/open-systems-pharmacology-ci/mobi/build/7.1.0.14">https://ci.appveyor.com/project/open-systems-pharmacology-ci/mobi/b...</a></p>
<p>I get the following error<br>
nuget sources add -name nuget.org -source <a href="https://www.nuget.org/api/v2">https://www.nuget.org/api/v2</a><br>
The name specified has already been added to the list of available package sources. Please provide a unique name.</p>
<p>So even though it was removed, it is still available</p>
<p>2: I tried to remove the nuget feed and add it under another name. Packages in nuget are picked up first<br>
<a href="https://ci.appveyor.com/project/open-systems-pharmacology-ci/mobi/build/7.1.0.15">https://ci.appveyor.com/project/open-systems-pharmacology-ci/mobi/b...</a></p>
<p>3: I also tried to remove nuget.org and did not add it back.<br>
Packages from nuget.org are also used!!</p>
<p>Here is what I can see in the console<br>
NuGet Config files used:<br>
C:\Users\appveyor\AppData\Roaming\NuGet\NuGet.Config C:\ProgramData\nuget\Config\Microsoft.VisualStudio.Offline.config C:\ProgramData\nuget\Config\ServiceFabricSDK.config Feeds used:<br>
C:\Users\appveyor.nuget\packages\ <a href="https://api.nuget.org/v3/index.json">https://api.nuget.org/v3/index.json</a> <a href="https://ci.appveyor.com/nuget/ospsuite-bddhelper">https://ci.appveyor.com/nuget/ospsuite-bddhelper</a> <a href="https://ci.appveyor.com/nuget/ospsuite-utility">https://ci.appveyor.com/nuget/ospsuite-utility</a> <a href="https://ci.appveyor.com/nuget/ospsuite-serializer">https://ci.appveyor.com/nuget/ospsuite-serializer</a> <a href="https://ci.appveyor.com/nuget/ospsuite-texreporting">https://ci.appveyor.com/nuget/ospsuite-texreporting</a> <a href="https://ci.appveyor.com/nuget/ospsuite-databinding">https://ci.appveyor.com/nuget/ospsuite-databinding</a> <a href="https://ci.appveyor.com/nuget/ospsuite-databinding-devexpress">https://ci.appveyor.com/nuget/ospsuite-databinding-devexpress</a> <a href="https://ci.appveyor.com/nuget/ospsuite-funcparser">https://ci.appveyor.com/nuget/ospsuite-funcparser</a> <a href="https://ci.appveyor.com/nuget/ospsuite-simmodel">https://ci.appveyor.com/nuget/ospsuite-simmodel</a> <a href="https://ci.appveyor.com/nuget/ospsuite-simmodel-solver-cvodes-282">https://ci.appveyor.com/nuget/ospsuite-simmodel-solver-cvodes-282</a> <a href="https://ci.appveyor.com/nuget/ospsuite-core">https://ci.appveyor.com/nuget/ospsuite-core</a> <a href="https://ci.appveyor.com/nuget/ospsuite-smartxls">https://ci.appveyor.com/nuget/ospsuite-smartxls</a> C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\ C:\Program Files\Microsoft SDKs\Service Fabric\packages\</p>
<p>Interestingly, the feed<br>
C:\Users\appveyor.nuget\packages\<br>
<a href="https://api.nuget.org/v3/index.json">https://api.nuget.org/v3/index.json</a></p>
<p>are used even though they do not appear in the sources list.</p>
<p>Is there a way to override that behavior?</p>
<p>Thanks for your help,</p>
<p>Bests,<br>
Michael</p></div>michaeltag:help.appveyor.com,2012-11-13:Comment/414801152017-03-30T16:04:44Z2017-03-30T16:04:44ZNuget source feed order<div><p>Hey Feodor,</p>
<p>You know what, after much consideration, we are just going to swap out the component per scripts. This is going to be much easier</p>
<p>Thanks for your help on that,<br>
Mike</p></div>michaeltag:help.appveyor.com,2012-11-13:Comment/414801152017-03-30T16:30:25Z2017-03-30T16:30:25ZNuget source feed order<div><p>Ah, OK then, thanks for keeping us updated!</p></div>Feodor Fitsner