“TransformXml"在 TeamCity 构建中未找到任务(错误 MSB4036) [英] The "TransformXml" task was not found (error MSB4036) on TeamCity build

查看:52
本文介绍了“TransformXml"在 TeamCity 构建中未找到任务(错误 MSB4036)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我使用 TeamCity 构建了服务器.我的项目是 Sitecore Web 应用程序.我正在使用 TDS (HedgehogDevelopment).我已经使用 MS build 在 TeamCity 中设置了构建设置,并且在构建配置管理器中禁用了 TDS 项目时看起来可以正常工作.但后来它使我得到网络错误

Hello I have build server with TeamCity. My project is Sitecore Web Application. I am using TDS (HedgehogDevelopment). I have setup build settings in TeamCity with MS build and it looks like working when TDS project is disabled in build configuration manager. But then it enebled I am getting net error

C:\程序文件(x86)\MSBuild\HedgehogDevelopment\SitecoreProject\v9.0\HedgehogDevelopment.SitecoreProject.targets(310,5):错误 MSB4036:未找到TransformXml"任务.检查如下: 1.) 项目文件中的任务名称与任务类的名称.2.) 任务类是public"并且实现 Microsoft.Build.Framework.ITask 接口.3.) 任务在项目文件中正确声明,或在*.tasks 文件位于C:\Windows\Microsoft.NET\Framework64\v3.5"目录中.项目NetKey.TDSMaster\MyProject.TDSMaster.scproj 失败.项目网站\MyProject.sln 失败

C:\Program Files (x86)\MSBuild\HedgehogDevelopment\SitecoreProject\v9.0\HedgehogDevelopment.SitecoreProject.targets(310, 5): error MSB4036: The "TransformXml" task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.) The task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with in the project file, or in the *.tasks files located in the "C:\Windows\Microsoft.NET\Framework64\v3.5" directory. Project NetKey.TDSMaster\MyProject.TDSMaster.scproj failed. Project Website\MyProject.sln failed

错误描述中的帮助对我来说不是一个案例.我在构建机器上没有 VS 2012.我已经安装了 Microsoft Visual Studio 2012 Shell支持我的网络项目.如何解决?谢谢.

The help in error description is not a case for me. I don't have VS 2012 on build machine. I have installed Microsoft Visual Studio 2012 Shell for support my web project. How to resolve it ? Thanks.

推荐答案

TransformXML 是 ASP.NET Web 发布工具的一部分.因此,它们通常会在您的构建服务器上安装 Visual Studio,并且需要的不仅仅是 Visual Studio 的 Shell 版本.安装 Visual Studio Express Web Edition 也可以解决问题.

TransformXML comes as part of the ASP.NET Web Publishing tools. As such they usually come with a Visual Studio installation on your build server and require more than just the Shell version of Visual Studio. Installing Visual Studio Express Web Edition might also do the trick.

您可以尝试安装 Web-Deploy 看看它是否足够,但通常我只是在构建代理上安装完整版的 Visual Studio.这在 MSDN 订阅许可下是合法的.

You could try installing the Web-Deploy package to see whether it's enough, but usually I just install the full version of Visual Studio on a build agent. This is legal under MSDN Subscription licensing.

经过一些试验,我可以看出您至少需要在构建服务器上安装 Visual Studio Web Developer Tools,才能以正式方式安装这些任务.我怀疑安装 Visual Studio Express Web Edition 就足够了.

After some experimenting I can tell that you need to install at least the Visual Studio Web Developer Tools on the build server for these tasks to get installed the official way. I suspect that installing the Visual Studio Express Web Edition would suffice.

这篇关于“TransformXml"在 TeamCity 构建中未找到任务(错误 MSB4036)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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