#error shows in errors, #warning in warnings. How can I make a line of text appear in the messages filter of the Error List window?
To clarify:
If I place the following line within a C# code file, it will generate an error on build, and that error will appear in the Error List window if I switch the errors on (like tabs above the list, there are buttons to toggle Errors, Warnings, and Messages).
#error This will cause a divide by zero
The same can be done to inject warnings into the build output:
#warning This might produce a NullReference exception
What would I place in the C# code file to have a message like that appear in the Messages list?