I recognized that Web Deployment Projects
are not supported in Visual Studio 2012
. After reading this article, I tried to get Publish Profiles
to work.
After installing Visual Studio Web Publish Update I was able to publish web site projects and web application projects with the new publish dialog in Visual Studio 2012
.
Because we are using TFS 2010 Team Build
I tried to use publish profile via MSBuild
parameters. But the following statement only works to publish web application projects.
MSBuild.exe MyWebs.sln /p:Configuration=Release /p:DeployOnBuild=true;PublishProfile=DeployToDirectory.pubxml
If I try to publish website projects nothing happens. The publish profile of my website projects only works with the new publish dialog in Visual Studio 2012
but not when calling MSBuild
.
Any idea?