9

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?

alexey
  • 8,360
  • 14
  • 70
  • 102
  • can you let me know - if a solution contains non web projects as well, will those be a part of the package that is generated by the msbuild? I am new to the .NET world, and i trying to get the concept of "build once and deploy anywhere". If the non web projects are left out than, my theory to build a single package for the solution is not going to work! – OK999 Feb 28 '16 at 23:09

2 Answers2

4

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.

Community
  • 1
  • 1
alexey
  • 8,360
  • 14
  • 70
  • 102
-1

I use this manually, should be a matching msbuild parameter

Using the Publish Web Wizard to Create a Deployment Package

joe
  • 1