Building deployment package with Visual Studio 2012

msbuild, msdeploy, visual-studio, visual-studio-2012

Solution

The problem was exactly the same as in this question. Copying *C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web** from a local machine to a remote CI server.

Problem

We were building a Visual Studio 2010 solution with the following msbuild command: ``` msbuild MySolution.sln /p:DeployOnBuild=true;DeployTarget=Package ``` This command built the solution and created the deployment packages for web projects in the solution. But after we've migrated to Visual Studio 2012 this command doesn't work anymore. The solution is built, but no deployment packages are created. How to fix it?

Original source

Related problems