Search code examples
octopus-deploynuspec

How to get Octopack to use custom .nuspec file?


The documentation seems to be really incomplete. All it says is that you can use your own .nuspec file, but it makes no mention of where you're supposed to put it, or how to get octopack to use it.

http://docs.octopusdeploy.com/display/OD/Using+OctoPack

I've tried naming the .nuspec file the same thing that my solution is named and having it in the same directory. That didn't work.

I've tried modifying the .nuspec file that Octopack generates, but those changes just get overwritten every time I run it.

Everything else I try is just a shot in the dark.

Has anyone gotten this to work?


Solution

  • blerg.

    I'm a dummy.

    The .nuspec file needs to be in the same directory as the .csproj file. This actually makes sense because it allows you to have a different nuspec file for each project in your solution.

    Hopefully this post helps someone else.