Reputation: 32698
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/**/*.*
Upvotes: 17
Views: 8101
Reputation: 12551
NuGet was not meant for tools/applications/executables. It is meant for things that go into the source and working with the source. Where NuGet stops, Chocolatey comes in. You can also use Octopus for conventional deployment, see the answer in this question with Octopus Deploy. You can also integrate Chocolatey with Octopus.
Chocolatey will have better support for packaging up websites and getting them installed as websites in the future. At the time of this answer it doesn't yet have a built in function for installing a web application.
Upvotes: 8
Reputation: 466
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.
Upvotes: 11
Reputation: 2276
I've been preparing the Nuget setup in our company for distributing our libraries to our developers.
The thing with Nuget is, you can do a lot of things, but is it worth the effort to make it do something it not really intended for.
Seems easier to use other software like CruiseControl or something similar to distribute finished programs and websites.
Most of the custom things you can do with Nuget, can only be used inside Visual Studio.
May be you can also look at Chocolatey ( an adaption for Nuget for installing Applications)
Upvotes: 2