title: What does Aspnet_compiler.exe do?
body: <p>I'm trying to pre-compile views for our MVC5.1 application to improve first load performance (see <a href="https://stackoverflow.com/questions/22018962/precompile-during-publish-for-azure-web-services">this question</a> for more context).</p>
  
  <p>I'm playing with <code>aspnet_compiler.exe</code>:</p>
  
  <pre><code>aspnet_compiler -p d:/path/to/myapp/ -v myapp
  </code></pre>
  
  <p>I can definately see the compilation going on - warnings about <code>Obsolete</code> methods usage. But where does it put the results? </p>
  
  <p>Before the experiment I've cleaned <code>Temporary Asp.Net Files</code>, just to see the result. And after the compilation finish, nothing happened. Both <code>c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\</code> and <code>c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\</code> were still empty.</p>
  
  <p>I also tried executing with exact path for virtual path</p>
  
  <pre><code>aspnet_compiler -p d:/path/to/myapp/ -v d:/tmp/myapp
  </code></pre>
  
  <p>and that folder was left empty. But second run of the compiler was much quicker, because I did not clean the build. This makes me think the results are available somewhere.</p>
  
  <p>So my questions are: where does it store the results of compilation? <strong>and how can I make IIS use these results instead of Just-In-Time compilation?</strong></p>
  
  <p><strong>Update:</strong> I have found how to capture the output of compilation. Just specify a path as a last (or first) parameter:</p>
  
  <pre><code>aspnet_compiler -p d:/path/to/myapp/ -v / d:/tmp/myapp
  </code></pre>
  
  <p>This leave the question, how can I make IIS to pick it up?</p>