Home > Software engineering >  Visual Studio C# Project Template #if DEBUG #endif disappear in produced projects
Visual Studio C# Project Template #if DEBUG #endif disappear in produced projects

Time:11-29

I have Visual Studio C# project template with #if DEBUG #endif directives like this:

#if DEBUG
...
#endif

But when I creating project from this template it doesn't contain this part. Can I somehow make it to be in projects that created from this template?

CodePudding user response:

Please follow this enter image description here

Demo:

enter image description here

  • Related