I was compiling Release build of my application, and it placed PDB file near executable, which is fine for me, because it will provide more detailed stacktrace when my app might crash (like .cs files and corresponding lines there), and also allows you to open your app through decompiled (like dotPeek) and see in which .cs file was corresponding class. But I was wandering, is it possible to exclude specific .cs files from adding into PDB file?
For example, I have two .cs files:
- Main.cs
- .. other
.csfiles - Internal.cs
Is it possible to generate PDB file including Main.cs and other .cs files, but exclude Internal.cs file?
Thanks.