Write to output window at compile time

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

    Write to output window at compile time

    Hi all,

    I'm trying to write messages at compile time to the output window like I
    used to with the good old #pragma message

    Is this possible in c#?

    TIA
    Dansk.
  • Michael Nemtsev [MVP]

    #2
    Re: Write to output window at compile time

    Hello Dansk,

    try #warning

    ---
    WBR,
    Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

    "The greatest danger for most of us is not that our aim is too high and we
    miss it, but that it is too low and we reach it" (c) Michelangelo


    DHi all,
    D>
    DI'm trying to write messages at compile time to the output window
    Dlike I used to with the good old #pragma message
    D>
    DIs this possible in c#?
    D>
    DTIA
    DDansk.


    Comment

    • Dansk

      #3
      Re: Write to output window at compile time

      Hello Michael,

      Thanks for your answer.
      In fact, I wanted to avoid seeing the message in the Error List even as
      a warning.

      From the documentation I see a suggestion about a conditional
      directive. This could help, I'll look into that direction.


      Even if it would be better with a simple message ;)



      Michael Nemtsev [MVP] wrote :
      Hello Dansk,
      >
      try #warning
      ---
      WBR, Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour
      "The greatest danger for most of us is not that our aim is too high and
      we miss it, but that it is too low and we reach it" (c) Michelangelo
      >
      DHi all,
      DDI'm trying to write messages at compile time to the output window
      Dlike I used to with the good old #pragma message
      DDIs this possible in c#?
      DDTIA
      DDansk.
      >
      >

      Comment

      Working...