Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can packages be published to a TeamCity nuget server?

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

like image 568
Andy Avatar asked May 02 '12 23:05

Andy


People also ask

How do I publish a NuGet package to Azure artifacts?

Connect to feedSelect Artifacts, and then select your feed from the dropdown menu. Select Connect to feed. Select NuGet.exe. Follow the instructions in Project setup to set up your nuget.

What is NuGet package source?

NuGet is a package manager that delivers compiled source code (DLLs) and other files (scripts and images) related to code. A NuGet package takes the form of a zip file with the extension . nupkg. This makes adding, updating, and removing libraries easy in Visual Studio applications.

What is an NuGet package and have you written a package?

Put simply, a NuGet package is a single ZIP file with the . nupkg extension that contains compiled code (DLLs), other files related to that code, and a descriptive manifest that includes information like the package's version number.


2 Answers

"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/

like image 96
Robert Brooker Avatar answered Oct 13 '22 00:10

Robert Brooker


ack, not supported yet: http://devnet.jetbrains.net/message/5456081#5456081

like image 27
Andy Avatar answered Oct 13 '22 00:10

Andy