/debug:pdbonly in a C# project

Z

zee

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, DebuggableAttribute
(true, true) is added to the assembly, which is VERY undesirable.

If I try to override the DebuggableAttribute in code, I get an error CS0647:
Error emitting 'System.Diagnostics.DebuggableAttribute' attribute --
'Assembly custom attribute 'System.Diagnostics.DebuggableAttribute' was
specified multiple times with different values'.

Distrubuting an additional .INI file with DebuggableAttribute 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.
 
H

Habib Heydarian [MSFT]

Unfortunately, the /debug:pdbonly option is not available via the project
properties in VS2002 or VS2003. We are hoping to address this issue in the
future.

HabibH.
 
Z

zee

Thank you for the answer.

I believe just allowing to pass 'additional compiler options' would have
solved it.
And it would enable some other features, such as compiling projects as
..netmodule's from within the IDE.

Personally, I really lack the rich set of compile options I have in C++. C#
options seem too bare for me :).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top