[英]How can I build WSP files (SharePoint 2013 Web Part packages) with TeamCity
I am automating the build of a Sharepoint 2013 Web Part using TeamCity 9.1.4 我正在使用TeamCity 9.1.4自动构建Sharepoint 2013 Web部件
The build runs fine and creates the DLL output. 生成运行良好,并创建DLL输出。
How can I make TeamCity create WSP files (same output as clicking Deploy on Web Part project in Visual Studio)? 如何使TeamCity创建WSP文件(与在Visual Studio中单击“在Web部件上部署项目”相同的输出)?
I am particularly interested in an experience of someone who set it up succesfully, I am aware of lots of articles mentioning using /t:Package argument for msbuild, and older posts mentioning WSPBuilder. 我对成功设置它的人的经验特别感兴趣,我知道很多文章提到了使用/ t:Package参数用于msbuild的老文章,以及提到WSPBuilder的老文章。 I just cannot make it work in my TeamCity build.
我只是无法使其在TeamCity构建中正常工作。
Finally it works. 终于可以了。
The flag to use for MSBuild.exe is /p:IsPackaging=true , you can enter it in the command line parameters of your TeamCity build step. 用于MSBuild.exe的标志是/ p:IsPackaging = true ,您可以在TeamCity构建步骤的命令行参数中输入它。
I added the following DLLs in the directory C:\\Program Files (x86)\\MSBuild\\14.0\\Bin: 我在目录C:\\ Program Files(x86)\\ MSBuild \\ 14.0 \\ Bin中添加了以下DLL:
I found which DLL was missing by using the FusionLogs approach described by Scott Hanselman in this article 我通过使用Scott Hanselman在本文中介绍的FusionLogs方法发现了哪个DLL丢失了
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.