WTF

Entries from June 2011

  • Homepage

Jun 1: MSBuild Exec task - IgnoreStandardErrorWarningFormat

If you are using MSBuild 4.0.30319 and try to set the property IgnoreStandardErrorWarningFormat on the Exec task you might run into the following message error:
error MSB4064: The "IgnoreStandardErrorWarningFormat" parameter is not supported by the "Exec" task.

The solution is very, very simple: be sure to add ToolsVersion="4.0" to the Project tag.

<Project DefaultTargets="Bla" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
  <Target Name="Bla">
    <Exec IgnoreStandardErrorWarningFormat="true" Command="dir /w" />
  </Target>
</Project>
 

Posted by Twan Jacobs in WTF Comments: (0) Trackbacks: (0)
« previous page   (Page 1 of 1, totaling 1 entries)   next page »

Calendar

Back June '11 Forward
Mo Tu We Th Fr Sa Su
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30      

Archives

  • May 2012
  • April 2012
  • March 2012
  • Recent...
  • Older...

Categories

  • XML BizTalk
  • XML C#
  • XML Daily Didst
  • XML Infra
  • XML SQL
  • XML WCF
  • XML WTF


All categories

Syndicate This Blog

  • XML RSS 2.0 feed
  • XML RSS 2.0 Comments

Blog Administration

Open login screen

Powered by

Serendipity PHP Weblog
 

Layout by Andreas Viklund | Serendipity template by Carl