title: How to set the SVN version number on .NET dll using MSBuild Community Task library correctly
body: <p>I'm using the <a href="http://msbuildtasks.tigris.org/">MSBuild Community Task library</a> to get the current SVN version an set that in my AssemblyInfo files to get the revision in the final compiled dll.</p>
  
  <p>As you know SVN version can then be like "28" or "28M" - if there are modifications. If i do a MSBuild message and output the Revision property I see I get a 28M after modification but when updating the AsseblyInfo I keep getting only 28 in the version number ..? </p>
  
  <p>I'd like to have the 28M in the version number to indicate the dll is built using a non-check in modification. How can I get that working?</p>
  
  <pre><code>&lt;Target Name="Compile"&gt;
  &lt;SvnVersion LocalPath="$(MSBuildProjectDirectory)" ToolPath="$(SvnTool)"&gt;
    &lt;Output TaskParameter="Revision" PropertyName="Revision" /&gt;
  &lt;/SvnVersion&gt;
  
  &lt;ItemGroup&gt;
    &lt;AssemblyInfoFiles Include="x.a\Properties\AssemblyInfo.cs" /&gt;
    &lt;AssemblyInfoFiles Include="x.b\Properties\AssemblyInfo.cs" /&gt;
  &lt;/ItemGroup&gt;
  
  &lt;FileUpdate Files="@(AssemblyInfoFiles)"
              Regex="(\d+)\.(\d+)\.(\d+)\.(\d+)"
              ReplacementText="$(MajorVersion).$(MinorVersion).$(Revision).0" /&gt;
  
  &lt;MSBuild  Projects="$(MSBuildProjectDirectory)\ConfigExplorer.sln" Targets="Rebuild" Properties="Configuration=$(BuildType);" /&gt;
  </code></pre>
  
  <p></p>