Visual Studio has an "Error list" window:
In a msbuild task (in a .csproj file):
- When I use the
<error text="Foo">
tag, I get an error in the error list (and I can hide it by un-toggling errors in that window) - When I use the
<warning text="Bar">
tag, I get a warning in the error list (and I can hide it by un-toggling warnings in that window) - When I use the
<message text="Baz">
tag, I don't see anything in the error list window. If I go to the output window, I can see the message there (even if I toggle on or off messages).
How can I, from a MSBuild script, produce messages that show up in the Visual Studio "Error list" window ?
Note: I'm using Visual Studio 2010.