Unfortunately the C# compiler does not yet support custom compile-time
attributes, maybe there will be a WarningAttribute in future versions of the
C# compiler but for now there are two possible solutions:
1. Use the System.ObsoleteAttribute
2. Create a custom warning attribute and write an add-in that will reflect
throughout your solution/project emitting warning messages
--
Gabriel Lozano-Morán
The .NET Aficionado
http://www.pointerx.net
"chrisb" <ch**********@gmail.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
Hi,
Does anyone know if it's possible to generate a custom compiler warning
in vs2005? Something like the //todo: comments (possibly //warning: ),
but it would show up in the warnings on every build with my custom
message?
It would be useful to remind me to do something later that depends upon
code that has yet to be written.
Thanks
Chris.