Downloading Source Code

Nov 10, 2010 at 11:19 AM

Does nuget support the downloading of source code for a package alongside the binaries?

Nov 10, 2010 at 12:31 PM

Add the source files to the package definition if you wish - see the documentation for creating package

Nov 10, 2010 at 12:36 PM

Sorry, to be clear, I am writing this from the POV of a package consumer, as opposed to a package provider. But I gather from your reply there is no standard way of doing this, it is on a per-package basis?

Coordinator
Nov 10, 2010 at 5:45 PM

That is correct. What we do allow is a package author to specify a projectUrl. The idea being that developers interested in learning more about the package can go there and hopefully get the source code.

If you wanted a more standard way to get the source, how would you expect to get it? Would you want a zip file with the source dropped into the directory where we place the package?

Developer
Nov 10, 2010 at 5:49 PM

See this discussion http://nuget.codeplex.com/Thread/View.aspx?ThreadId=232782