<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>MSBuild / Visual Studio aware error messages and message formats</title><link>http://blogs.msdn.com/b/msbuild/archive/2006/11/03/msbuild-visual-studio-aware-error-messages-and-message-formats.aspx</link><description>MSBuild recognizes error messages and warnings that have been specially formatted by many command line tools that typically write to the console. For instance, take a look at the following error messages - they are all properly formatted to be MSBuild</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: MSBuild / Visual Studio aware error messages and message formats</title><link>http://blogs.msdn.com/b/msbuild/archive/2006/11/03/msbuild-visual-studio-aware-error-messages-and-message-formats.aspx#10295760</link><pubDate>Fri, 20 Apr 2012 11:40:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10295760</guid><dc:creator>Coder_Dan</dc:creator><description>&lt;p&gt;Like Joe Chavez, I too really want to know how I can get a message in to the &amp;#39;Messages&amp;#39; list in the Error List pane of VS2010 via a #pragma message in C++.&lt;/p&gt;
&lt;p&gt;Please can you help?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10295760" width="1" height="1"&gt;</description></item><item><title>re: MSBuild / Visual Studio aware error messages and message formats</title><link>http://blogs.msdn.com/b/msbuild/archive/2006/11/03/msbuild-visual-studio-aware-error-messages-and-message-formats.aspx#9514736</link><pubDate>Fri, 27 Mar 2009 21:37:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9514736</guid><dc:creator>Joe Chavez</dc:creator><description>&lt;p&gt;With regard to:&lt;/p&gt;
&lt;p&gt;Messages &lt;/p&gt;
&lt;p&gt;Indicates the number of Messages in the list. Click to toggle whether Messages are displayed. &lt;/p&gt;
&lt;p&gt;What is the syntax to add &amp;quot;message&amp;quot; to the &amp;quot;Messages&amp;quot; list in the build output.&lt;/p&gt;
&lt;p&gt;So far I have:&lt;/p&gt;
&lt;p&gt;printf(&amp;quot;UnitTest++: info UT100: %d tests passed.\n&amp;quot;, totalTestCount);&lt;/p&gt;
&lt;p&gt;printf(&amp;quot;UnitTest++: message UT100: %d tests passed.\n&amp;quot;, totalTestCount);&lt;/p&gt;
&lt;p&gt;printf(&amp;quot;UnitTest++: warning UT100: %d tests passed.\n&amp;quot;, totalTestCount);&lt;/p&gt;
&lt;p&gt;printf(&amp;quot;UnitTest++: error UT100: %d tests passed.\n&amp;quot;, totalTestCount);&lt;/p&gt;
&lt;p&gt;The first 2 &amp;quot;info&amp;quot; and &amp;quot;message&amp;quot; do not show up in the &amp;quot;Messages&amp;quot; list. The &amp;quot;warning&amp;quot; and &amp;quot;error&amp;quot; work as expected.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9514736" width="1" height="1"&gt;</description></item><item><title>re: MSBuild / Visual Studio aware error messages and message formats</title><link>http://blogs.msdn.com/b/msbuild/archive/2006/11/03/msbuild-visual-studio-aware-error-messages-and-message-formats.aspx#9426546</link><pubDate>Tue, 17 Feb 2009 00:52:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9426546</guid><dc:creator>Hoop Somuah</dc:creator><description>&lt;p&gt;also, shouldn't &amp;quot;(line,col,line,col)&amp;quot; be &amp;quot;(line,col-line,col)&amp;quot; for consistency?&lt;/p&gt;
&lt;p&gt;where comma separated values in a cordinate (point) and hyphen separates the values in a span&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9426546" width="1" height="1"&gt;</description></item><item><title>re: MSBuild / Visual Studio aware error messages and message formats</title><link>http://blogs.msdn.com/b/msbuild/archive/2006/11/03/msbuild-visual-studio-aware-error-messages-and-message-formats.aspx#9426539</link><pubDate>Tue, 17 Feb 2009 00:48:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9426539</guid><dc:creator>Hoop Somuah</dc:creator><description>&lt;p&gt;&amp;quot; (line) or (line-line) or (line-col) or (line,col-col) or (line,col,line,col)&amp;quot;&lt;/p&gt;
&lt;p&gt;(line-col) should read (line,col) &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9426539" width="1" height="1"&gt;</description></item><item><title>re: MSBuild / Visual Studio aware error messages and message formats</title><link>http://blogs.msdn.com/b/msbuild/archive/2006/11/03/msbuild-visual-studio-aware-error-messages-and-message-formats.aspx#9256305</link><pubDate>Tue, 30 Dec 2008 01:56:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9256305</guid><dc:creator>baztheman</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I posted in msdn with a msbuild error code return question but have not been answered hence I am giving this another try...&lt;/p&gt;
&lt;p&gt;I am using msbuild from framework version 2.0.50727.1433. I need to be able to capture msbuild error correctly on command line or via batch files. When I type &amp;quot;msbuild sdsd&amp;quot;, it does not return non zero. Why?&lt;/p&gt;
&lt;p&gt;Here is my msdn forum post if you want more details: &lt;a rel="nofollow" target="_new" href="http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/82615310-3ac2-4265-87fb-c3d7a4e652fe/"&gt;http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/82615310-3ac2-4265-87fb-c3d7a4e652fe/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;B.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9256305" width="1" height="1"&gt;</description></item><item><title>re: MSBuild / Visual Studio aware error messages and message formats</title><link>http://blogs.msdn.com/b/msbuild/archive/2006/11/03/msbuild-visual-studio-aware-error-messages-and-message-formats.aspx#7396430</link><pubDate>Sat, 02 Feb 2008 21:09:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7396430</guid><dc:creator>Greg Popovitch</dc:creator><description>&lt;p&gt;I have a problem. When compiling c++ with cl the file names in error messages are lowercased. This is not the case when building from inside Visual Studio 2005. How can I prevent this case change when using cl?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;greg&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=7396430" width="1" height="1"&gt;</description></item><item><title>Good site</title><link>http://blogs.msdn.com/b/msbuild/archive/2006/11/03/msbuild-visual-studio-aware-error-messages-and-message-formats.aspx#7072658</link><pubDate>Fri, 11 Jan 2008 15:13:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7072658</guid><dc:creator>fabiola-wy</dc:creator><description>&lt;p&gt;&amp;lt;a href= &lt;a rel="nofollow" target="_new" href="http://puhlov.com"&gt;http://puhlov.com&lt;/a&gt; &amp;gt;mixolgy measurments&amp;lt;/a&amp;gt; &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=7072658" width="1" height="1"&gt;</description></item><item><title>re: MSBuild / Visual Studio aware error messages and message formats</title><link>http://blogs.msdn.com/b/msbuild/archive/2006/11/03/msbuild-visual-studio-aware-error-messages-and-message-formats.aspx#6959415</link><pubDate>Thu, 03 Jan 2008 00:16:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6959415</guid><dc:creator>Chris Kline</dc:creator><description>&lt;p&gt;It's worth noting that &amp;quot;warning&amp;quot; and &amp;quot;error&amp;quot; MUST be lower case in order to be recognized. I.e., &amp;quot;Warning&amp;quot; will not be recognized. &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=6959415" width="1" height="1"&gt;</description></item><item><title>re: MSBuild / Visual Studio aware error messages and message formats</title><link>http://blogs.msdn.com/b/msbuild/archive/2006/11/03/msbuild-visual-studio-aware-error-messages-and-message-formats.aspx#4997581</link><pubDate>Wed, 19 Sep 2007 17:45:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4997581</guid><dc:creator>Mike</dc:creator><description>&lt;p&gt;This is really nice for Errors and Warnings, but how do you get VS to log a simple informational message. &amp;nbsp;Category only contains error and warning and by experimentation I see that VS ignores attempts at &amp;quot;message&amp;quot;, &amp;quot;informational&amp;quot;, etc... &amp;nbsp;Is there a magic incantation?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=4997581" width="1" height="1"&gt;</description></item><item><title>re: MSBuild / Visual Studio aware error messages and message formats</title><link>http://blogs.msdn.com/b/msbuild/archive/2006/11/03/msbuild-visual-studio-aware-error-messages-and-message-formats.aspx#4544068</link><pubDate>Fri, 24 Aug 2007 18:34:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4544068</guid><dc:creator>turha</dc:creator><description>&lt;p&gt;Here is the GNU specification for formatting error messages so that line and column numbers can be automatically recognized:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.gnu.org/prep/standards/standards.html#Errors"&gt;http://www.gnu.org/prep/standards/standards.html#Errors&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It says tab stops should be assumed every 8 columns. &amp;nbsp;Your blog post did not go into such detail. &amp;nbsp;How should column numbers logged via MSBuild count tabs and CJK fullwidth characters?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=4544068" width="1" height="1"&gt;</description></item></channel></rss>