TFS Build 2010-自定义二进制位置和SharePoint WSP [英] TFS Build 2010 - Custom Binary Location and SharePoint WSP
问题描述
我正在使用TFS Build 2010构建解决方案.此解决方案有多个项目,其中一个项目是SharePoint.
I'm building a solution using TFS Build 2010. This solution has multiple projects and one of the projects is SharePoint.
我希望TFS Build将每个项目的二进制文件放入其自己的文件夹(即自定义的二进制文件夹)中.因此,我遵循了来自MSDN的指示,并且可以正常工作.
I want TFS Build to put binaries for each project in its own folder (i.e. customized binary folder). So I followed the instructions from MSDN and it works.
现在的挑战是,我不不能使用自定义的二进制文件夹生成WSP文件(请注意,我可以在没有自定义的情况下生成WSP二进制文件夹).我收到此错误:
Now the challenge is that I'm not able to generate a WSP file with the customized binary folder (note that I'm able to generate WSP without the customized binary folder). I'm getting this error:
C:\\..\..\Microsoft.VisualStudio.SharePoint.targets (389): Unable to get the assembly for SharePoint Project Item "Layouts".
我认为TFS Build/MSbuild无法找到正确的程序集,因为我更改了"OutputPath"值以实现自定义的二进制文件夹.
I think TFS Build/MSbuild is not able to locate the correct assembly because I changed the "OutputPath" value to achieve customized binary folders.
推荐答案
您将不得不更新Microsoft.VisualStudio.SharePoint.targets
文件.该文件位于构建服务器上的文件夹C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\SharePointTools\
中.
You are going to have to update the Microsoft.VisualStudio.SharePoint.targets
file. This file is located in the folder C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\SharePointTools\
on the build server.
转到行号366:<CreateSharePointProjectService Configuration=...
将属性OutDir="$(TeamBuildOutDir)"
更改为OutDir="$(TargetDir)"
并保存文件.
Change the attribute OutDir="$(TeamBuildOutDir)"
to OutDir="$(TargetDir)"
and save the file.
I have a blog post on this topic with screenshots.
这篇关于TFS Build 2010-自定义二进制位置和SharePoint WSP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!