The new integrated NuGet workflow

After a short false start of this note that hopefully none of you actually saw, here is the full announcement post.

For the past few weeks we have been working hard together with the NuGet team on simplifying the symbol and source distribution story for .NET libraries.

What we can finally show you today is an integrated workflow that allows effortless submission of packages to both NuGet and SymbolSource sites simultaneously. What best speaks to us developers are examples, so please consider the following commands:

  1. Create a regular and a symbol/source package in one go:

    nuget.exe pack MyLibrary.csproj -Symbols

    This will use the *.nuspec file included in the project file and generate MyLibrary.1.0.0.0.nupkg for nuget.org and MyLibrary.1.0.0.0.symbols.nupkg for symbolsource.org.

  2. Save your API key for easier use of nuget.exe:

    nuget.exe SetApiKey 78a53314-c2c0-45c6-9d92-795b2096ae6c

  3. Push both packages to appropriate sites in one go:

    nuget.exe push MyLibrary.1.0.0.0.nupkg

And that's it! After a short moment your package will be available not only for download through the NuGet package manager, but also for full on-demand debugging in Visual Studio with SymbolSource.

No registration on SymbolSource is required for this to work, but you can create an account later and associate your NuGet API key to manage past and future submissions.

Please remember to update your nuget.exe before trying this yourself.

Posted by Marcin Mikołajczak (TripleEmcoder) on Thursday, April 14, 2011

blog comments powered by Disqus