8

I have created a new team build definition. On every checkin, the build happens on a TFS server (another build controller). After the build completes, I want to publish the files. The MSBuild input arguments used are /p:DeployOnBuild=true;PublishProfile=QADeploy. QADeploy is the publishing profile created.

I expect the team build to succeed which happens. But the successful build does not publish or attempt to publish the files to the destination folder. Any ideas why, the publish via publish profile is not triggered?

Edward Thomson
  • 74,857
  • 14
  • 158
  • 187
vijayst
  • 20,359
  • 18
  • 69
  • 113

2 Answers2

11

Weird, but adding the Visual Studio Version resolved the problem:

/p:DeployOnBuild=true /p:PublishProfile=QADeploy /p:VisualStudioVersion=11.0
vijayst
  • 20,359
  • 18
  • 69
  • 113
0

I had the same issue and was pulling my hair out. Check out this Similar Problem, it helped me.

I fixed it via copying both WEB and WEB APPLICATION web build targets from this path on a PC with VS installed into the matching path on the build server:

C:\Program Files\MSBuild\Microsoft\VisualStudio\v11.0 (path for VS 2012)

I am not sure if their suggestion of using the full installer for web deploy helps. I tried both suggestions at the same time and it worked there after.

Also it only works on a Web Project

Community
  • 1
  • 1
timmah.faase
  • 2,219
  • 1
  • 15
  • 23