/debug:pdbonly in a C# project

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • zee

    /debug:pdbonly in a C# project

    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

  • Habib Heydarian [MSFT]

    #2
    Re: /debug:pdbonly in a C# project

    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.

    "zee" <v0rtex@yandex. ru> wrote in message
    news:%23jjhZsip DHA.424@TK2MSFT NGP10.phx.gbl.. .[color=blue]
    > Hi,
    >
    > Is it possible to specify /debug:pdbonly somehow in a C# project, or I[/color]
    must[color=blue]
    > 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[/color]
    CS0647:[color=blue]
    > 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[/color]
    C++[color=blue]
    > has. It would solve this and many other problems.
    >
    > ---
    >
    > Thanks,
    > zee
    >[/color]


    Comment

    • zee

      #3
      Re: /debug:pdbonly in a C# project

      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 :-).

      --
      zee

      "Habib Heydarian [MSFT]" <habibh@microso ft.com> wrote in message
      news:eYM2xsjpDH A.2188@TK2MSFTN GP11.phx.gbl...[color=blue]
      > 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.
      >
      > "zee" <v0rtex@yandex. ru> wrote in message
      > news:%23jjhZsip DHA.424@TK2MSFT NGP10.phx.gbl.. .[color=green]
      > > Hi,
      > >
      > > Is it possible to specify /debug:pdbonly somehow in a C# project, or I[/color]
      > must[color=green]
      > > resort to writing custom build scripts?
      > >
      > > My problem is when I set Generate Debug Info to True,[/color][/color]
      DebuggableAttri bute[color=blue][color=green]
      > > (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[/color]
      > CS0647:[color=green]
      > > 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[/color][/color]
      is[color=blue][color=green]
      > > also undesirable.
      > >
      > > It would be great if C# had a way to pass additional compiler options as[/color]
      > C++[color=green]
      > > has. It would solve this and many other problems.
      > >
      > > ---
      > >
      > > Thanks,
      > > zee
      > >[/color]
      >
      >[/color]

      Comment

      Working...