title: Nant aspnet_compiler.exe release build
body: <p>I have the following nant task:</p>
  
  <pre><code>&lt;!--Compiles the possible release candidate to be used for further testing and possible release --&gt;
  &lt;target name="createReleaseCandidateJob"&gt;
    &lt;xmlpoke file="${nant.project.basedir}/${webApplicationProjectName}/Web.config"
     xpath="/configuration/system.web/compilation/@debug"
     value="false" /&gt;
    &lt;exec basedir="." program="C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_compiler.exe"
          commandline="-p ${webApplicationProjectName} -v / ${releaseCandidateOutputDir}"
          workingdir="."
          failonerror="true"
        /&gt;
    &lt;echo&gt;Completed Compile RC Job&lt;/echo&gt;
  &lt;/target&gt;
  </code></pre>
  
  <p>I also have the following line of code included in my project:</p>
  
  <pre><code>myVersion = "2.0b";
  #if DEBUG
       myVersion = Guid.NewId().ToString();
  #endif
  </code></pre>
  
  <p>this is used when loading certain assets (swf files) by being appended as a querystring parameter and ensures that when debugging a cached version isn't received but is manageable once released.</p>
  
  <p>However, after what I believed should be compiling a relase build, the version is still being set as a Guid indicating I'm not achieving a release build yet. I've checked the web.config and the value of debug is changed to false so I'm assuming I'm missing some setting in the aspnet_compiler.exe arguments, but I cant find anything which indicates such in the documentation.</p>