【问题标题】:TEAMBUILD: error MSB4057: The target "GetXapOutputFile" does not exist in the projectTEAMBUILD:错误 MSB4057:项目中不存在目标“GetXapOutputFile”
【发布时间】:2009-05-28 21:44:15
【问题描述】:

我在尝试在 Visual Studio 2008 上的 TeamExplorer 中通过 TeamBuild 运行构建时遇到此错误。

在构建机器上,我安装了 VS SP1、Team Explorer、Silverlight 3 工具和 RIA 服务。

我可以在我的机器上直接在 Build Machine 上使用 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)"
/>

知道我可能缺少什么吗?

【问题讨论】:

  • 我遇到了同样的问题,我找到了原因:我丢失了

标签: msbuild silverlight-3.0 wcf-ria-services tfsbuild


【解决方案1】:

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

“xxx.Web”项目的属性菜单,“Silverlight Application”选项卡,删除当前项并重新添加。之后,在构建...时,错误将消失。但我不知道为什么会这样。

在这里找到:http://connect.microsoft.com/VisualStudio/feedback/details/698689/error-msb4057-the-target-getxapoutputfile-does-not-exist-in-the-project

【讨论】:

    猜你喜欢
    • 2015-11-11
    • 2016-12-23
    • 1970-01-01
    • 2019-11-03
    • 1970-01-01
    • 1970-01-01
    • 2017-06-06
    • 1970-01-01
    • 2022-08-11
    相关资源
    最近更新 更多