How can packages be published to a TeamCity nuget server?

Andy picture Andy · May 3, 2012 · Viewed 10.7k times · Source

We have a TeamCity 7 server configured for nuget. It's hosted on a machine with no external connectivity. Is it possible to publish packages to the TeamCity nuget server? For example, if we want to add a log4net package dependency to one of our projects, it needs to be published to the TeamCity server, as nuget.org is unreachable. So far, I've tried publishing to variations on http://teamcity:port/guestauth/app/nuget/v1/FeedService.svc but no luck so far.

Thanks, Andy

Answer

Robert Brooker picture Robert Brooker · May 4, 2012

"The workaround is to create a build configuration that publishes those packages as artifacts."

http://blogs.jetbrains.com/teamcity/2011/12/01/setting-up-teamcity-as-a-native-nuget-server/