Publishing executables and websites with NuGet

Garry Shutler picture Garry Shutler · Jan 18, 2012 · Viewed 7.4k times · Source

I'm looking to standardize our publishing mechanism for libraries, executables and websites.

All the documentation on the NuGet website talks about publishing libraries, tools and source files but there does not seem to be any guidance on the directory structure when publishing fully packaged executables and websites.

Is there any guidance or existing convention on this?

If I were to make something up it would look like:

exe/net40/*.*
website/net40/**/*.*

Answer

Michelle Steele picture Michelle Steele · Jan 27, 2012

We are using Octopus Deploy by Paul Stovell, an automated deployment tool which pulls from a Nuget feed and distributes your application using a central dashboard.

We also have some msbuild scripts following the conventions on his site which tell you how to build the nuget files.

Apparently, the latest version of Teamcity (EAP) can automatically package your artifacts to nuget packages and act as a NuGet server.

We have had much success using both TC and Octopus Deploy for automated build and deployment.