Hi,
Is it possible to specify /debug:pdbonly somehow in a C# project, or I must
resort to writing custom build scripts?
My problem is when I set Generate Debug Info to True, DebuggableAttri bute
(true, true) is added to the assembly, which is VERY undesirable.
If I try to override the DebuggableAttri bute in code, I get an error CS0647:
Error emitting 'System.Diagnos tics.Debuggable Attribute' attribute --
'Assembly custom attribute 'System.Diagnos tics.Debuggable Attribute' was
specified multiple times with different values'.
Distrubuting an additional .INI file with DebuggableAttri bute overrides is
also undesirable.
It would be great if C# had a way to pass additional compiler options as C++
has. It would solve this and many other problems.
---
Thanks,
zee
Is it possible to specify /debug:pdbonly somehow in a C# project, or I must
resort to writing custom build scripts?
My problem is when I set Generate Debug Info to True, DebuggableAttri bute
(true, true) is added to the assembly, which is VERY undesirable.
If I try to override the DebuggableAttri bute in code, I get an error CS0647:
Error emitting 'System.Diagnos tics.Debuggable Attribute' attribute --
'Assembly custom attribute 'System.Diagnos tics.Debuggable Attribute' was
specified multiple times with different values'.
Distrubuting an additional .INI file with DebuggableAttri bute overrides is
also undesirable.
It would be great if C# had a way to pass additional compiler options as C++
has. It would solve this and many other problems.
---
Thanks,
zee
Comment