TEAMBUILD:错误 MSB4057:目标“GetXapOutputFile” 项目中不存在
我尝试在 Visual Studio 2008 上的 TeamExplorer 中通过 TeamBuild 运行构建时遇到此错误。
在构建计算机上,我安装了 VS SP1、Team Explorer、Silverlight 3 工具和 RIA 服务。
我可以在我的机器上和直接在构建机器上使用 Visual Studio 进行编译,没有任何问题。 但我仍然无法通过 TeamBuild 进行编译,因为它“说”我缺少 GetXapOutputFile 目标。
我检查了 C:\Program Files\MSBuild\Microsoft\Silverlight\v3.0\Microsoft.Silverlight.Common.targets 文件,它确实有 GetXapOutputFile 目标:
<!--
============================================================
GetXapOutputFile
This stand-alone target returns the name of the built xap file.It
only makes sense to call this after a build
============================================================
-->
<Target
Name="GetXapOutputFile"
DependsOnTargets="_CreateSLProperties"
Outputs="$(XapOutputFile)"
/>
知道我可能缺少什么吗?
I'm getting this error trying to run my Build thru TeamBuild in TeamExplorer on Visual Studio 2008.
On the Build Machine I installed VS SP1, Team Explorer, Silverlight 3 tools, and RIA Services.
I can compile no problem with Visual Studio on my machine and directly on the Build Machine. But I still cant compile on thru TeamBuild because it "says" I'm missing GetXapOutputFile target.
I checked C:\Program Files\MSBuild\Microsoft\Silverlight\v3.0\Microsoft.Silverlight.Common.targets file and it does have the GetXapOutputFile target:
<!--
============================================================
GetXapOutputFile
This stand-alone target returns the name of the built xap file.It
only makes sense to call this after a build
============================================================
-->
<Target
Name="GetXapOutputFile"
DependsOnTargets="_CreateSLProperties"
Outputs="$(XapOutputFile)"
/>
Any idea what I might be missing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您好,我正在尝试命令行构建并遇到了同样的问题,这为我解决了这个问题:
“xxx.Web”项目的“属性”菜单,“Silverlight 应用程序”选项卡,删除当前项目并再次添加。 之后,当构建...时,错误就会消失。 但我不知道为什么会这样。
在这里找到:http://connect.microsoft.com/VisualStudio/feedback/details/698689/error-msb4057-the-target-getxapoutputfile-does-not-exist-in-the-project
Hi I was trying a command line build and had same issue, this solved it for me:
Properties menu of 'xxx.Web' project, 'Silverlight Application' tab, remove the current item and add it again. After that, when building..., the error will go away. But I don't know why it is.
Found here: http://connect.microsoft.com/VisualStudio/feedback/details/698689/error-msb4057-the-target-getxapoutputfile-does-not-exist-in-the-project