When getting started with Octopus Deploy, it’s common for people to stumble over one of the first steps involved: packaging their applications as NuGet packages. To make it easier to create packages, we’ve implemented some big changes in OctoPack, our NuGet packaging helper, creating OctoPack version 2.0.
The biggest change is that we’ve now made it easier and simpler to invoke OctoPack. You simply run:
msbuild YourSolution.sln /t:Build /p:RunOctoPack=true
OctoPack will automatically package your application using only the relevant files (e.g., content files and binaries for web applications). This is a big improvement to OctoPack 1.0, since you no longer need to build each project independently (we’re building the solution above), and you don’t need to mess around with web application project publishing anymore - OctoPack takes care of it.
We also implemented a few other improvements:
- You don’t need to create NuSpec files anymore - if one doesn’t exist, we’ll automatically generate it
- You can add release notes from a file which we’ll include when packaging
- When uninstalling, we now remove the targets file
For more information on OctoPack 2.0, please view the readme. I’ll blog some examples of how to use OctoPack 2.0 with TeamCity and TFS, but until then I hope these changes make it easier for you to package your applications for Octopus. Happy deployments!
Tags:
Related posts

Certificates Feature
Certificates can be uploaded in PFX, PEM, or DER formats, and may include private-keys. They can be scoped to Environments and\or Tenants.

Deploying to no targets
As part of Octopus Deploy 3.8.7 we released a new feature related to Elastic and Transient Environments that we thought warranted a call out.

Octopus Deploy 3.7 - Effortless step templates
The new release of Octopus Deploy steps it up a notch by improving the UI for adding a step template, providing direct access to community step templates from a project's deployment process and improving the management of step templates in the library.