c# - How to disable step-into debugging for a package? -
Text after "
I have created a NuGet package and until this test I found that whenever a step in the package moves from Visual Studio Disclaimer code, I would not like to happen.
The package is designed under the release configuration.
What is required to disable the code of package sections through steps?
Text after "div class =" itemprop = "text">
Are you publishing PDB files with your NuGet package? If so, allows you to step into the visual studio is treating you as expected.
If you definitely want to include the PDB, then you will need to add the [DebuggerStepThrough]
attribute for every class in your assembly though , Will make a bad dream debugging for you unless you do this just in a release mode using a #if blank
hash defined condition.
My suggestion would be not include PDBs in your newgate package, then you do not need to modify your code at all.
Comments
Post a Comment