RyterINC
RyterINC

Reputation: 119

TeamCity Nuget feed viewing

So maybe I'm a little bit confused about how a nuget server works and the specifics of nugets in general.

I am setting up octopus deploy and TeamCity for my company and have run into a bit of a snag. I am trying to set up a deployment where I deploy a website and a service in the same release, however, Octopus can't seem to find the nuget package. It throws the following error:

Could not find any packages with ID 'PackageName' in the feed 'octopus://'

I am able to see the package when I test the feed in octopus, and I verified that I am using the correct ID in teamcity. Basically what I've been trying to research is how I can view all of my nugets in the feed. Is that a thing? I am using TeamCity as the Nuget server and I know with octopus you can view all packages that have been pushed to its repository. Am I able to view all packages in the TeamCity Nuget server? I want to verify that my package is there.

Upvotes: 1

Views: 1078

Answers (2)

vikram
vikram

Reputation: 14

Include Octopack in the project to build the nuget package.

Use this parameter with MSBuild to automatically push the package to the destination nuget gallery after the build is complete.

/p:OctoPackPublishPackageToHttp=http://my-nuget-server/api/v2/package

Upvotes: 0

GrandMasterFlush
GrandMasterFlush

Reputation: 6409

In order for Octopus to be able to publish the package, it needs it to be set to build an OctoPack.

To get this working, use the NuGet package manager for the project in question and add a reference to 'OctoPack'.

Bear in mind that if you have a Visual Studio solution containing several packages and you want several of these to be deployable packages you will have to add OctoPack to each project you want as a deployable package.

Upvotes: 1

Related Questions