NuGet Package Debugging - Symbols with Non-Displaying Sources

I am trying to build both nuget packages and symbols for my library. I use TeamCity to build packages, and then push them to the SymbolSource internal repo .

It seems like everything is building / packing / pushing, but when I go to debug in my nuget package (using VS2012), the source code is not correct, all the better, I can not find the names of the methods that it shows me somewhere in the library.

My project structure:

MyProject / Bin/ release/ MyProject.dll VariousFolders/ CSFiles.cs VariousCSFiles.cs MyProject.csproj MyProject.nuspec 

In my .nuspec file (note that the v4.0 and v4.5 directories are processed on the TeamCity side):

 <?xml version="1.0"?> <package > <metadata> <id>MyProject</id> <version>0.0</version> <title>MyProject</title> <authors>Me</authors> <owners>Possibly You</owners> <requireLicenseAcceptance>false</requireLicenseAcceptance> <description>Sweet Description</description> <releaseNotes></releaseNotes> <copyright>Copyright 2013</copyright> </metadata> <files> <file src="MyProject\**\*.cs" target="src" /> <file src="MyProject\bin\release\v4.0\*.dll" target="lib\net40" /> <file src="MyProject\bin\release\v4.0\*.pdb" target="lib\net40" /> <file src="MyProject\bin\release\v4.5\*.dll" target="lib\net45" /> <file src="MyProject\bin\release\v4.5\*.pdb" target="lib\net45" /> </files> </package> 

Testing the performance of the MyProject.0.0.nupkg command

 lib/ net40/ MyProject.dll net45/ MyProject.dll 

Checking the results of TeamCity MyProject.0.0.symbols.nupkg

 lib/ net40/ MyProject.dll MyProject.pdb net45/ MyProject.dll MyProject.pdb src/ VariousFolders/ CSFiles.cs VariousCSFiles.cs 

So the problem I am assuming is that when I click on the package before my internal repo symbol, I look at the file structure, it looks like this:

 Data/ MyProject/ 0.0/ Bianaries/ MyProject/ some_hash/ MyProject.dll MyProject.pdb MyProject.txt Sources/ [Empty] MyProject.0.0.nupkg 

The Sources folder is empty, 100% empty, I can’t get any .cs file in this Sources folder, but again, I don’t know what happens between nuget push to my repo, the actual dump to the data folder and VS2012, magically pulling debugging characters.

So, I have a complete loss where you can check the following.

+7
source share
1 answer

Not sure if this will work. But have you tried resetting VS2012? You can do this using TOOLS β†’ Import and Export Settings and select the Reset all settings option in the dialog box. You can save the current settings if you want.

0
source

All Articles