Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I control which version of an msbuild file is used between .NET4 and 4.5RC?
    primarykey
    data
    text
    <p>On my development laptop I have only VS2012 RC installed, and I am successfully able to hook into the new MSDeploy .pubxml plumbing (DeployOnBuild and PublishProfile settings) from powershell (via psake) to deploy my web site to our test server.</p> <p>However, on my build server, I initially had VS2010 SP1 installed, and I've now <em>additionally</em> installed the 2012 RC (I have other builds on this machine that are still .NET 4).</p> <p>When running the same script with exactly the same parameters, I see different results between my dev machine and the build server. The command I'm running is</p> <pre><code>exec { msbuild "Website\WebSite.csproj" /m p:DeployOnBuild=True /p:PublishProfile=MyTestProfile } </code></pre> <p>On the build server, this does not in fact trigger MSDeploy, but simply the packaging bits that zip the site up and makes a deployment package. My machine successfully picks the pubxml file up and does a successful deployment.</p> <p>Eventually, I believe I've traced the problem to the file Microsoft.Web.Publishing.targets. On my dev machine I have only</p> <pre><code>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web </code></pre> <p>but the server additionally has</p> <pre><code>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web </code></pre> <p>and it seems like this file (without knowledge of the .pubxml stuff) is what's being used there.</p> <p>Has anybody got any idea what I need to twiddle (preferably within my own msbuild files so I don't screw up anything else on the build server for the 4.0 builds) to get msbuild to pick up the v11.0 version of the file and thereby use my .pubxml file?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload