How do you build an Octopus Nuget Package Manually

  • Page Owner: Not Set
  • Last Reviewed: 2018-11-06

Just wondering how you build a package for octopus manually using octopack.exe


Answer

msbuild Path-To-SLN\UticaPOC.sln /t:Build /p:RunOctoPack=true /p:OctoPackPackageVersion=5.0.0.0

So to break this down.

  1. reference the MSBuild command
  2. Enter FQ Path to your solution file (.sln)
  3. Call the build target ("/t:")
  4. Make sure you have the parameter /p:RunOctoPack=true.
  5. Pass in the parameters you want. in this case, i want to set the package name as well as the package version. Octopus uses version numbers for its packages so it is a lot easier to reference.