title: Having trouble with double quotes in ReplacementText string for MSBuild FileUpdate target
body: <p>I have an issue figuring out how to escape double quotes properly in my MSBuild <code>FileUpdate</code> target, in the <code>ReplacementText</code> attribute.</p>
  
  <p>What I'm trying to do is very simple.  I want to search for <code>AssemblyFileVersion("1.0.0.0")</code> and replace it with <code>AssemblyFileVersion("1.0.0.&lt;revision number here&gt;")</code>.  I'm using a <code>FileUpdate</code> element that looks like this:</p>
  
  <pre><code>&lt;FileUpdate Files="Properties\AssemblyInfo.cs" Regex="AssemblyFileVersion(\(\x22)(\d+)\.(\d+)\.(\d+)\.(\d+)" ReplacementText="AssemblyFileVersion$1$2.$3.$4.$(build_vcs_number_1)" /&gt;
  </code></pre>
  
  <p>This works fine, but it sure seems like a strange way to do it!  Basically, since I wasn't able to get double quotes to work in the <code>ReplacementText</code> attribute, I had to group the " from the Regex string, and then use the group number to insert the " into the <code>ReplacementText</code> (actually, I grouped the ( and the ", but I only needed to group the ").</p>
  
  <p>I've tried all of the standard methods -- \", "", \x22, \x22, \", and nothing works.  I must be missing something obvious here, but what is it?</p>
  
  <p>Embarrassed...</p>