Web部署项目和放大器; TeamCity的 [英] Web Deployment Project & TeamCity

查看:283
本文介绍了Web部署项目和放大器; TeamCity的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想建立一个解决方案网络部署项目2010项目。我已经安装了Windows SDK和Web部署项目2010 RTW生成服务器上,以及复制的MSBuild的失踪 .TARGET 文件。

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 \\微软\\ WebDeployment \\ 10.0 \\ Microsoft.WebDeployment.targets(1589,9):错误MSB6004:指定的任务可执行文件的路径C:\\ Program Files文件\\的MSBuild \\微软\\ WebDeployment \\ 10.0 \\ aspnet_merge.exe是无效的。

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.

不幸的是,谷歌四处搜寻有关此错误的结果没有透露太多值钱的东西。任何帮助来获得的TeamCity成功打造网络部署项目将AP preciated。

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.

推荐答案

更​​合适的解决方案应该是将 TargetFrameworkSDKDirectoryBin 属性您.wdproj文件。例如:

More suitable solution should be to set TargetFrameworkSDKDirectoryBin property in your .wdproj file. For example:

<TargetFrameworkSDKDirectoryBin>C:\Programmi\Microsoft SDKs\Windows\v7.1\Bin\</TargetFrameworkSDKDirectoryBin>

此设置,.dtproj文件中使用,覆盖Microsoft.WebDeployment.targets定义的默认设置,你可以在这里看到。

this setting, used in .dtproj file, override the default setting defined in Microsoft.WebDeployment.targets as you can see here

<Target
  Name="GetAspNetMergePath"
  DependsOnTargets="$(GetAspNetMergePathDependsOn)">
  <PropertyGroup>
      <AspnetMergeName>aspnet_merge.exe</AspnetMergeName>
      <AspnetMergePath>$(MSBuildExtensionsPath)\Microsoft\WebDeployment\v10.0</AspnetMergePath>
      <AspnetMergePath Condition="Exists('$(TargetFrameworkSDKDirectoryBin)$(AspnetMergeName)')">$(TargetFrameworkSDKDirectoryBin)</AspnetMergePath>
  </PropertyGroup>
</Target>

第二 AspnetMergePath 表示,如果存在其他地方一个 $(TargetFrameworkSDKDirectoryBin)点到现有aspnet_merge。 exe文件,这将被使用。

the second AspnetMergePath means that if exists somewhere else a $(TargetFrameworkSDKDirectoryBin) that point to an existing aspnet_merge.exe file, this will be used.

这篇关于Web部署项目和放大器; TeamCity的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆