Web部署项目和放大器; TeamCity的

编程入门 行业动态 更新时间:2024-10-10 04:19:58
本文介绍了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的

本文发布于:2023-11-28 18:55:30,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1643573.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:放大器   项目   Web   TeamCity

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!