We have been successfully updating our development website daily using msdeploy from TFS2010.
This worked fine until we updated VS2012, our application from the .NET Framework 4.0 to 4.5 and ASP.NET MVC from 3.0 to 4.0. Everything seems to be fine, but the assemblies are deployed, but nothing has been deployed.
I have been studying this for two days now and cannot understand why this is happening, and now my ideas are running out.
The following is part of my build script in how it worked before the upgrade.
<MSBuild Projects="$(SolutionRoot)\My.Web\My.Web.csproj" Properties="MvcBuildViews=False;AllowUntrustedCertificate=True;AuthType=Basic;Configuration=Dev;CreatePackageOnPublish=True;DeployIisAppPath=dev.myweb;DeployOnBuild=True;DeployTarget=MsDeployPublish;MSDeployPublishMethod=WMSvc;MsDeployServiceUrl=https://10.xxx.xxx.xxx:8172/MsDeploy.axd;UserName=UserName;Password=Password;UseMsdeployExe=True" ContinueOnError="False" />
When the update started and my problem was discovered, we used Web Deploy 2.0, but now we upgraded it to Web Deploy 3.0. I also made sure that we are building ToolsVersion="4.0" .
UPDATE -
msbuild.exe / p: AllowUntrustedCertificate = True / P: AuthType = Basic / P: Configuration = Dev / P: CreatePackageOnPublish = True /p:DeployIisAppPath=dev.myweb / P: DeployOnBuild = True / P: DeployTarget = MsDeployPub MSDeployPublishMethod = WMSvc /p:MsDeployServiceUrl=https://10.xxx.xxx.xxx:8172/MsDeploy.axd / P: UserName = Username / P: Password = Password / P: UseMsdeployExe = True E: \ Builds \ 1 \ \ Daily_Build, however, \ Sources \ My.Web \ My.Web.csproj
Now I also tried to run the above msbuild command from our TFS and no answer that completely disappointed me. Nothing in the TFS event log, nothing in the log file, verbosity ... Any ideas?
It works using the msdeploy command, as shown below;
<Exec Command=""C:\Program Files\IIS\Microsoft Web Deploy V3\MSDeploy.exe" -verb:sync -source:contentPath="E:\Builds\1\WhatEver\Daily_Build\Sources\My.Web\My.Web.csproj" -dest:contentPath="E:\dev.my.web",computername=https://10.xxx.xxx.xxx:8172/MsDeploy.axd,username=UserName,password=Password,authtype=Basic -allowUntrusted=True" ContinueOnError="false" />
-
UPDATE 2 - It looks like Microsoft has added verification of which projects that are published and our web application are not, since the Output Type is a class library. This was true with v4.0, but apparently not for v4.5.
Does anyone have an idea what to make it work again? Do I need to change project type? Create a publishing package up and then deploy it? Or what?
-
Has anyone else had the same problem? Did you find an exchange solution?
May have a problem with the version of MSBuild?