NuGet packages now come with Debug symbols, Sources

| by Roopesh Shenoy Follow 0 Followers on Apr 19, 2011. Estimated reading time: 1 minute |

The NuGet team has announced a feature that allows package authors to package their sources along with their assemblies for distribution through NuGet. This enables developers using these packages to debug through the sources of the referenced packages easily, without having to search for the source code on the project hosting server or do complicated setups.

This is what the David Ebbo, one of the NuGet project co-ordinators, had to say -

Up until now, there really wasn’t a great way for package authors to let their users debug into the package’s binaries. The user would have needed to download the sources separately from wherever the project is hosted, making sure that they exactly match the state of the binary. They would also need to locate the matching PDBs. That’s pretty hard to get right, and most users would generally not bother.

Now with almost no additional effort, package authors can publish their symbols and sources, and package consumers can debug into them from Visual Studio.

To bring this new feature, the NuGet team worked with SymbolSource to make it easy for developers to work with both the services. The SymbolSource team had this to share on their website

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 generateMyLibrary. for and MyLibrary. for

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.

NuGet is a free, open source developer focused package management system for the .NET platform intent on simplifying the process of incorporating third party libraries into a .NET application during development.

SymbolSource is a project that aims to provide a common debugging symbols and sources server for the most popular open source projects in the .NET ecosphere.

Rate this Article

Adoption Stage

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread


Login to InfoQ to interact with what matters most to you.

Recover your password...


Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.


More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.


Stay up-to-date

Set up your notifications and don't miss out on content that matters to you