Can i restore NuGet packages from a *public* MyGet feed?
Hi there,
is it possible to have my nuget restore step reference the official nuget feed *and* a public myget feed?
I have a nuget.config file in my root solution, eg...
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="NancyFX-CI" value="https://www.myget.org/F/nancyfx/" />
</packageSources>
</configuration>
But it's not using it..
...
Successfully installed 'Microsoft.AspNet.Razor 3.1.2'.
Successfully installed 'Microsoft.Bcl 1.1.9'.
Unable to find version '0.24-Pre1444' of package 'Nancy'.
Unable to find version '0.24-Pre1444' of package 'Nancy.Hosting.Aspnet'.
Unable to find version '0.24-Pre1444' of package 'Nancy.Viewengines.Razor'.
Command exited with code 1
I've also tried
Settings -> Environment -> Install Script (CMD) -> nuget sources add -Name NancyFX-CI -Source https://www.myget.org/F/nancyfx/
but still fails (see above error message).
What am I doing wrong, please?
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Feodor Fitsner on 21 Oct, 2014 06:31 PM
It's simple! Running the following command shows us that feed does not contain specified version of
Nancy
package (and others requested too), so the errorUnable to find version 'X of package 'Y'
is absolutely correct:2 Posted by Pure Krome on 21 Oct, 2014 09:05 PM
Ah - ok. So that answers one thing I assumed (incorrectly) about the public nancy myget feed.
Lets just step back a tick to answer the question then.
Q: If we wish to reference myget packages, all we need to do is have a nuget.config file (like the one I posted in the OP)? or do we still need to do something else (for appveyor) ?
Support Staff 3 Posted by Feodor Fitsner on 21 Oct, 2014 09:14 PM
nuget.config file as you showed above is fine. In fact, when you do
nuget sources add
command it does changes to a config under user profile.4 Posted by Pure Krome on 01 Nov, 2014 12:08 AM
Thanks for the help Feodor - all good. Closing this now! Cheers!
Pure Krome closed this discussion on 01 Nov, 2014 12:08 AM.