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:
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:
What am I doing wrong? I've also added the symbols server:
What's the implication of the 2nd option: to disable Just My Code?
Thanks.