<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: MSBuild WTF: &#8220;The error was:&#8221;</title>
	<atom:link href="http://www.gilesthomas.com/?feed=rss2&#038;p=17" rel="self" type="application/rss+xml" />
	<link>http://www.gilesthomas.com/?p=17</link>
	<description>Tech notes</description>
	<lastBuildDate>Tue, 13 Jul 2010 00:23:27 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Giles</title>
		<link>http://www.gilesthomas.com/?p=17&#038;cpage=1#comment-12</link>
		<dc:creator>Giles</dc:creator>
		<pubDate>Wed, 22 Nov 2006 23:59:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.gilesthomas.com/?p=17#comment-12</guid>
		<description>Faisal,

Now that&#039;s what I call customer service! :-)  I wish I&#039;d found a better &#039;net search term and had been able to pick up this aspect of the msbuild command before posting irately...  Should I assume, then, that &quot;x error y: z&quot; will always trigger this behaviour?  Also - is the full regex documented anywhere online?  I couldn&#039;t quite be sure I understood the diagram on your blog.

One further question - I am sure that while you were implementing this feature, you spent time deciding how to balance the Exec invocation&#039;s returned error number against the apparent errors noted through matches to this regex - that is, whether a tool that returned 0, theoretically signalling success, but also printed out what appeared to be an error message, should be regarded to have failed or not.  I come from a Unix-y background, and it seems wrong to me to not have the zero error code, meaning no error, &quot;trump&quot; what appears to be an error message.  Obviously you and your team feel differently; I&#039;d be very interested in knowing what the considerations that pointed you in that direction where.  Have you posted - or do you intend to post - anything along those lines?


Regards,

Giles</description>
		<content:encoded><![CDATA[<p>Faisal,</p>
<p>Now that&#8217;s what I call customer service! :-)  I wish I&#8217;d found a better &#8216;net search term and had been able to pick up this aspect of the msbuild command before posting irately&#8230;  Should I assume, then, that &#8220;x error y: z&#8221; will always trigger this behaviour?  Also &#8211; is the full regex documented anywhere online?  I couldn&#8217;t quite be sure I understood the diagram on your blog.</p>
<p>One further question &#8211; I am sure that while you were implementing this feature, you spent time deciding how to balance the Exec invocation&#8217;s returned error number against the apparent errors noted through matches to this regex &#8211; that is, whether a tool that returned 0, theoretically signalling success, but also printed out what appeared to be an error message, should be regarded to have failed or not.  I come from a Unix-y background, and it seems wrong to me to not have the zero error code, meaning no error, &#8220;trump&#8221; what appears to be an error message.  Obviously you and your team feel differently; I&#8217;d be very interested in knowing what the considerations that pointed you in that direction where.  Have you posted &#8211; or do you intend to post &#8211; anything along those lines?</p>
<p>Regards,</p>
<p>Giles</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Faisal Mohamood</title>
		<link>http://www.gilesthomas.com/?p=17&#038;cpage=1#comment-11</link>
		<dc:creator>Faisal Mohamood</dc:creator>
		<pubDate>Wed, 22 Nov 2006 17:26:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.gilesthomas.com/?p=17#comment-11</guid>
		<description>This is because Exec will parse the output produced by whatever you are running to interpret error messages that are in a specific format. See my blog post here: http://blogs.msdn.com/msbuild/archive/2006/11/03/msbuild-visual-studio-aware-error-messages-and-message-formats.aspx

While this comes in handy to populate the error list in Visual Studio, that is not the primary reason - many tools use this error format today.

In order to help you solve the issue, we are goin to make the &quot;regex&quot; used for specifying error formats extensible so that you can specify your own regular expression that can indicate what error format the Exec invocation should actually consider as an error. We hope for this feature to be available in Visual Studio / MSBuild Orcas.

Thanks.
Faisal Mohamood &#124; Program Manager &#124; Visual Studio</description>
		<content:encoded><![CDATA[<p>This is because Exec will parse the output produced by whatever you are running to interpret error messages that are in a specific format. See my blog post here: <a href="http://blogs.msdn.com/msbuild/archive/2006/11/03/msbuild-visual-studio-aware-error-messages-and-message-formats.aspx" rel="nofollow">http://blogs.msdn.com/msbuild/archive/2006/11/03/msbuild-visual-studio-aware-error-messages-and-message-formats.aspx</a></p>
<p>While this comes in handy to populate the error list in Visual Studio, that is not the primary reason &#8211; many tools use this error format today.</p>
<p>In order to help you solve the issue, we are goin to make the &#8220;regex&#8221; used for specifying error formats extensible so that you can specify your own regular expression that can indicate what error format the Exec invocation should actually consider as an error. We hope for this feature to be available in Visual Studio / MSBuild Orcas.</p>
<p>Thanks.<br />
Faisal Mohamood | Program Manager | Visual Studio</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: giles</title>
		<link>http://www.gilesthomas.com/?p=17&#038;cpage=1#comment-10</link>
		<dc:creator>giles</dc:creator>
		<pubDate>Mon, 20 Nov 2006 14:45:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.gilesthomas.com/?p=17#comment-10</guid>
		<description>I don&#039;t think so - if you echo &quot;Error:&quot; then the problem doesn&#039;t show up.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t think so &#8211; if you echo &#8220;Error:&#8221; then the problem doesn&#8217;t show up.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: damjan</title>
		<link>http://www.gilesthomas.com/?p=17&#038;cpage=1#comment-7</link>
		<dc:creator>damjan</dc:creator>
		<pubDate>Sun, 19 Nov 2006 23:55:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.gilesthomas.com/?p=17#comment-7</guid>
		<description>Maybe the problem is with that colon (:). It has special meaning in windows.</description>
		<content:encoded><![CDATA[<p>Maybe the problem is with that colon (:). It has special meaning in windows.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
