Msbuild TEAMBUILD:错误MSB4057:目标为“;GetXapOutFile";项目中不存在
我在VisualStudio2008上尝试在TeamExplorer中通过TeamBuild运行生成时遇到此错误 在构建机器上,我安装了VSSP1、团队资源管理器、Silverlight 3工具和RIA服务 我可以在我的机器上直接在构建机器上使用Visual Studio进行编译。但我仍然无法通过TeamBuild进行编译,因为它“表示”我缺少GetXapoutFile目标 我检查了C:\Program Files\MSBuild\Microsoft\Silverlight\v3.0\Microsoft.Silverlight.Common.targets文件,它确实具有GetXapOutFile目标:Msbuild TEAMBUILD:错误MSB4057:目标为“;GetXapOutFile";项目中不存在,msbuild,silverlight-3.0,wcf-ria-services,tfsbuild,Msbuild,Silverlight 3.0,Wcf Ria Services,Tfsbuild,我在VisualStudio2008上尝试在TeamExplorer中通过TeamBuild运行生成时遇到此错误 在构建机器上,我安装了VSSP1、团队资源管理器、Silverlight 3工具和RIA服务 我可以在我的机器上直接在构建机器上使用Visual Studio进行编译。但我仍然无法通过TeamBuild进行编译,因为它“表示”我缺少GetXapoutFile目标 我检查了C:\Program Files\MSBuild\Microsoft\Silverlight\v3.0\Micro
<!--
============================================================
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)"
/>
知道我可能遗漏了什么吗?嗨,我在尝试命令行构建,但遇到了同样的问题,这为我解决了这个问题: “xxx.Web”项目的“属性”菜单,“Silverlight应用程序”选项卡,删除当前项并再次添加。之后,当构建…,错误将消失。但我不知道为什么
在此处找到:我遇到了同样的问题,我找到了原因:我在.csproj文件中丢失了