Red Gate forums :: View topic - Publishing to NuGet Package Feed with RgPublish
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
Deployment Manager
Deployment Manager forum

Publishing to NuGet Package Feed with RgPublish

Search in Deployment Manager forum
Post new topic   Reply to topic
Jump to:  
Author Message
jkraft



Joined: 01 May 2013
Posts: 1
Location: United States

PostPosted: Wed May 01, 2013 3:31 pm    Post subject: Publishing to NuGet Package Feed with RgPublish Reply with quote

I'm having difficulty getting the RgPublish tool to actualy publish a package to a local NuGet Package Feed server.

It validates and writes the package just fine, but whenever it attempts to publish to the package feed it just returns an error:

The package feed at 'http://packagefeed.bluestonesolutions.local/' was not found. (The server responded with: [1] Not Found)

The URL is correct, and if I use the NuGet GUI to manually create the package and post it to the feed folder, Deployment Manager will find and deploy it just fine. The same location is used in the Depoyment Manager.

The feed server is a standard app, downloaded directly from NuGet site, compiled, and deployed. It does, however, use a custom package path.
Back to top
View user's profile Send private message AIM Address
csmith



Joined: 30 Jun 2011
Posts: 114
Location: Cambridge

PostPosted: Thu May 02, 2013 10:52 am    Post subject: Reply with quote

Hi

I think you need to add "/api/v2/package" to the end of your package feed URL.

http://packagefeed.bluestonesolutions.local/ is the root url of the nuget server - the actual 'service endpoint' is probably at http://packagefeed.bluestonesolutions.local/api/v2/package.

Further info...
NuGet.exe recognizes root urls and automatically appends "/api/v2/package" to the end and tries that. So, that is why nuget.exe is still working.

With rgpublish we took the decision not to automatically append the default service endpoint path to any root url specified because we can't always know that the path actually exists (it's not "/api/v2/package" on all Nuget feeds - like the embedded feed in Deployment Manager itself).

The future
In the next month, we plan to add to the rgpublish commandline so you don't need to specify the root or path of the nuget feed at all. Instead, you'll simply be able to specify the name of the feed (that you have specified in DM) and rgpublish will contact your DM server to retrieve the feed's location and any API key.

Best regards,
Chris
_________________
Chris Smith
Project Manager
Deployment Manager
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group