简体   繁体   English

如何使用TeamCity构建WSP文件(SharePoint 2013 Web部件包)

[英]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:

  • Microsoft.VisualStudio.SharePoint.ProjectExtensions.CodeGenerators.dll Microsoft.VisualStudio.SharePoint.ProjectExtensions.CodeGenerators.dll
  • Microsoft.VisualStudio.SharePoint.Remote.dll Microsoft.VisualStudio.SharePoint.Remote.dll
  • Microsoft.VisualStudio.SharePoint.Wsp.dll Microsoft.VisualStudio.SharePoint.Wsp.dll
  • Microsoft.VisualStudio.SharePoint.dll Microsoft.VisualStudio.SharePoint.dll
  • Microsoft.VisualStudio.SharePoint.Commands.Implementation.v5.dll Microsoft.VisualStudio.SharePoint.Commands.Implementation.v5.dll
  • Microsoft.VisualStudio.SharePoint.Designers.Models.dll Microsoft.VisualStudio.SharePoint.Designers.Models.dll
  • Microsoft.VisualStudio.SharePoint.Designers.Models.Features.dll Microsoft.VisualStudio.SharePoint.Designers.Models.Features.dll
  • Microsoft.VisualStudio.SharePoint.Designers.Models.Packages.dll Microsoft.VisualStudio.SharePoint.Designers.Models.Packages.dll
  • Microsoft.Office.Sharepoint.Tools.dll Microsoft.Office.Sharepoint.Tools.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.

相关问题 如何将查询参数从SharePoint 2013页面发送到自动托管的应用程序中的SharePoint App Web部件? - How can I send query parameters from SharePoint 2013 page to SharePoint App Web Part in autohosted app? 如何从处理此事件的方法中将单击按钮的ID检索到SharePoint 2013 Web部件中? - How can I retrieve the ID of the clicked button from the method handling this event into a SharePoint 2013 Web Part? MS Project 2013 + ASP.Net + Sharepoint 2013-我可以运行Web部件吗? - MS Project 2013 + ASP.Net +Sharepoint 2013-can i run web-part? SharePoint 2013如何使用Web部件连接? (Visual Web部件) - SharePoint 2013 How to use Web Part Connections? (Visual Web Part) 在sharepoint .wsp文件中,如何将充满文件的文件夹移到sharepoint文件系统中 - In a sharepoint .wsp file how do I move a folder full of files into the sharepoint filesystem 可以在Sharepoint 2013网站中将Tomtom Live通信用作Web部件吗? - can I use Tomtom Live traffic as Web Part in my Sharepoint 2013 Site? SharePoint 2013 App Part如何在其父宿主网站中启动重定向? - How can a SharePoint 2013 App Part initiate a redirect in its parent host web? 如何在Sharepoint 2013中的连接Web部件之间获取数据 - How to get data between connecting web part in Sharepoint 2013 合并Sharepoint WSP解决方案文件 - Merging Sharepoint WSP solution files 如何在Sharepoint 2013中调整/扩展内容编辑器Web部件 - How to adjust/extend the Content Editor Web Part in Sharepoint 2013
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM