<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/tags/MSBuild</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sun, 26 May 2013 09:19:01 GMT</pubDate>
<item>
<title>(XML) Update version number with Regular Expression using MSBuild - cappellin</title>
<link>http://snipplr.com/view/44674/update-version-number-with-regular-expression-using-msbuild/</link>
<description><![CDATA[ <p>This snippet replaces all three different version strings in file `verid.h` using regular expressions with the value of properties `$(Major)`, `%(Minor)`, `$(SP)` and `$(Build)` when the property `$(Label)` has value _true_.
To run this project you need MSBuild and the open source tasks library for MSBuild by [tigris.org](http://msbuildtasks.tigris.org/ "tigris.org").

Here is an example of file `verid.h`:

    // File version
    #define szVerId_IDS_VERSION         "1.40 (00) - Build (26)"
    #define szVerId_FILEVERSION         "1.40.00.26"
    #define   VerId_FILEVERSION          1,40,00,26
    
    // Product version
    #define szVerId_PRODUCTVERSION      "1.40.00.26"
    #define   VerId_PRODUCTVERSION       1,40,00,26</p> ]]></description>
<pubDate>Mon, 22 Nov 2010 22:52:42 GMT</pubDate>
<guid>http://snipplr.com/view/44674/update-version-number-with-regular-expression-using-msbuild/</guid>
</item>
<item>
<title>(XML) Web.config transformation in MSBuild script - jstrassburg</title>
<link>http://snipplr.com/view/41699/webconfig-transformation-in-msbuild-script/</link>
<description><![CDATA[ <p>This snippet transforms web.config files after the source Get. We are doing automatic deployment from our build server (not from a desktop build) and I wanted to make use of the web.config transformations in VS2010.

It uses the MSBuild extension pack to change file attributes.  If anyone knows an easier way to do this please let me know.</p> ]]></description>
<pubDate>Thu, 07 Oct 2010 03:38:04 GMT</pubDate>
<guid>http://snipplr.com/view/41699/webconfig-transformation-in-msbuild-script/</guid>
</item>
<item>
<title>(XML) Custom Build Steps for MSBuild - jstrassburg</title>
<link>http://snipplr.com/view/41697/custom-build-steps-for-msbuild/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 07 Oct 2010 03:27:25 GMT</pubDate>
<guid>http://snipplr.com/view/41697/custom-build-steps-for-msbuild/</guid>
</item>
</channel>
</rss>