Write to output window at compile time

  • Thread starter Thread starter Dansk
  • Start date Start date
D

Dansk

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


D> Hi all,
D>
D> I'm trying to write messages at compile time to the output window
D> like I used to with the good old #pragma message
D>
D> Is this possible in c#?
D>
D> TIA
D> Dansk.
 
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 :
 

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

Back
Top