TEAMBUILD:错误 MSB4057:目标“GetXapOutputFile” 项目中不存在

发布于 2024-07-23 02:10:57 字数 843 浏览 4 评论 0原文

我尝试在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

幸福不弃 2024-07-30 02:10:57

您好,我正在尝试命令行构建并遇到了同样的问题,这为我解决了这个问题:

“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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文