Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3116

Include debug symbols for an Azure Feed DLL package

$
0
0

We have a C# class library that's been published to Azure DevOps as a *.nupkg package feed. We've used this command to create the package:

nuget pack SomeProject.csproj -build -properties Configuration=Debug -OutputDirectory c:\_projects\_packages -Symbols -SymbolPackageFormat snupkg 

We'd like to now publish the Configuration=Release version of the package but still be able to debug the solution that uses that feed. We don't use pipelines in Azure DevOps; we only use it as our code repo and to hold our .nupkg packages.

I used the following for Release:

nuget pack SomeProject.csproj -build -properties Configuration=Release -OutputDirectory c:\_projects\_packages -Symbols -SymbolPackageFormat snupkg 

Then I added it to my project. However, when I try to debug, Visual Studio gives this message:

enter image description here

The above command produces a *.nupkg and a *.snupkg, which both get published to Azure. I found this little bit of information on debugging Release versions:

  • Open the Modules window, right-click and select Load Symbols (recommended).
  • Select Tools then Options. Select Debugging in the right panel then chose General. uncheck Enable Just My Code.

On the first suggestion, I've gone into the Modules in Debug menu and it's set to automatically load it:

enter image description here

What am I doing wrong? I've also added the symbols server:

enter image description here

What's the implication of the 2nd option: to disable Just My Code?

Thanks.


Viewing all articles
Browse latest Browse all 3116

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>