MvcBuildViews true causes "'/temp' is not a valid IIS application" error : <p>After setting <code>MvcBuildViews</code> to <code>true</code> in my <code>.csproj</code> file in order to have the views compile during build, I get the following error:</p>

<blockquote>
  <p>'/temp' is not a valid IIS application</p>
</blockquote>

<p>I presume that the '/temp' that this is referring to is the path where the views will be compiled. Here's the relevant section in the <code>.csproj</code> file:</p>

<pre><code>&lt;Target Name="MvcBuildViews" AfterTargets="AfterBuild" Condition="'$(MvcBuildViews)'=='true'"&gt;
    &lt;AspNetCompiler VirtualPath="temp" PhysicalPath="$(WebProjectOutputDir)" /&gt;
&lt;/Target&gt;
</code></pre>

<p>I use full IIS to serve up this MVC 5 website on my local machine (haven't tried this on a remote server yet). Do I need to set something up in IIS to make <code>MvcBuildViews</code> work correctly?</p>
