<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Tue, 09 Jun 2026 15:11:28 +0000</lastBuildDate>
    <item>
      <title>(XML) Update version number with Regular Expression using MSBuild - cappellin</title>
      <link>https://snipplr.com/view/44674/update-version-number-with-regular-expression-using-msbuild</link>
      <description>&lt;p&gt;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_.&#13;
To run this project you need MSBuild and the open source tasks library for MSBuild by [tigris.org](http://msbuildtasks.tigris.org/ "tigris.org").&#13;
&#13;
Here is an example of file `verid.h`:&#13;
&#13;
    // File version&#13;
    #define szVerId_IDS_VERSION         "1.40 (00) - Build (26)"&#13;
    #define szVerId_FILEVERSION         "1.40.00.26"&#13;
    #define   VerId_FILEVERSION          1,40,00,26&#13;
    &#13;
    // Product version&#13;
    #define szVerId_PRODUCTVERSION      "1.40.00.26"&#13;
    #define   VerId_PRODUCTVERSION       1,40,00,26&lt;/p&gt;</description>
      <pubDate>Mon, 22 Nov 2010 22:52:42 UTC</pubDate>
      <guid>https://snipplr.com/view/44674/update-version-number-with-regular-expression-using-msbuild</guid>
    </item>
  </channel>
</rss>
