title: UseWPP_CopyWebApplication with web.config transformations
body: <p>I am trying to build and publish my ASP.NET MVC3 project. I am trying to achieve Web.Release.config transformation using using the MSBuild method</p>
  
  <p>I have used the following msbuild command to do the same : msbuild </p>
  
  <pre><code> /p:OutDir=..\publish\;Configuration=Release;UseWPP_CopyWebApplication=True;PipelineDependsOnBuild=False DeployMVCApp.csproj
  </code></pre>
  
  <p>I saw the solution given in <a href="https://stackoverflow.com/questions/1983575/copywebapplication-with-web-config-transformations">_CopyWebApplication with web.config transformations</a>. I am using the same commands as mentioned there but the build fails while trying to publish the website. I am copy pasting the error :</p>
  
  <pre><code>&gt;       "C:\Users\anirban\Documents\Visual Studio 2010\Projects\DeployMVCApp\DeployMVCApp\DeployMVCApp.csproj" (default
  &gt; target) (1) -&gt;    "C:\Users\anirban\Documents\Visual Studio
  &gt; 2010\Projects\DeployMVCApp\DeployMVCAp p\DeployMVCApp.csproj"
  &gt; (ResolveReferences;_CopyWebApplication target) (1:2) -&gt;
  &gt; "C:\Users\anirban\Documents\Visual Studio
  &gt; 2010\Projects\DeployMVCApp\DeployMVCAp p\DeployMVCApp.csproj"
  &gt; (ResolveReferences;_CopyWebApplication target) (1:3) -&gt;  
  &gt; c:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(214,9)
  &gt; : error MSB4184: The expression
  &gt; "[System.IO.Path]::GetFullPath(C:\Users\anirban\ Documents\Visual
  &gt; Studio
  &gt; 2010\Projects\DeployMVCApp\DeployMVCApp\\C:\Users\anirban\Documents\Visual
  &gt; Studio 2010\Projects\DeployMVCApp\DeployMVCApp\\..\publish\) " cannot
  &gt; be evaluated. The given path's format is not supported.
  &gt; [C:\Users\anirban\Documents\Visual Studio
  &gt; 2010\Projects\DeployMVCApp\DeployMVCApp\DeployMVCApp .csproj]
  </code></pre>
  
  <p>Can anyone let me know where I am going wrong?</p>