I am trying to build a web deployment project 2010 project for a solution. I have installed the Windows SDK and Web Deployment Project 2010 RTW on the build server, as well as copied over the missing .target
files for MSBuild.
When attempting to build the project it spits out the following error
C:\Program Files\MSBuild\Microsoft\WebDeployment\v10.0\Microsoft.WebDeployment.targets(1589, 9): error MSB6004: The specified task executable location "C:\Program Files\MSBuild\Microsoft\WebDeployment\v10.0\aspnet_merge.exe" is invalid.
Unfortunately, searching around Google for results about this error don't reveal anything of much value. Any help to get TeamCity successfully building the web deployment project would be appreciated.
More suitable solution should be to set
TargetFrameworkSDKDirectoryBin
property in your .wdproj file. For example:this setting, used in .dtproj file, override the default setting defined in Microsoft.WebDeployment.targets as you can see here
the second
AspnetMergePath
means that if exists somewhere else a$(TargetFrameworkSDKDirectoryBin)
that point to an existing aspnet_merge.exe file, this will be used.Change the following node at line 1562 in the file "Microsoft.WebDeployment.targets" :
I added a workaround comment on the appropriate Microsoft Connect page :
http://connect.microsoft.com/VisualStudio/feedback/details/706047/visual-studio-2010-web-deployment
ok your aspnet_merge is being pointed to the wrong place - in my build script i have something that ends up as follows:
try it and see