1

我正在使用 TeamCity 9.1.4 自动构建 Sharepoint 2013 Web 部件

构建运行良好并创建 DLL 输出。

如何让 TeamCity 创建 WSP 文件(与在 Visual Studio 中单击在 Web 部件项目上部署相同的输出)?

我对成功设置它的人的体验特别感兴趣,我知道很多文章提到使用 /t:Package 参数进行 msbuild,以及提到 WSPBuilder 的旧文章。我只是无法让它在我的 TeamCity 构建中工作。

4

1 回答 1

1

最后它起作用了。

用于 MSBuild.exe 的标志是/p:IsPackaging=true,您可以在 TeamCity 构建步骤的命令行参数中输入它。

我在目录 C:\Program Files (x86)\MSBuild\14.0\Bin 中添加了以下 DLL:

  • Microsoft.VisualStudio.SharePoint.ProjectExtensions.CodeGenerators.dll
  • Microsoft.VisualStudio.SharePoint.Remote.dll
  • Microsoft.VisualStudio.SharePoint.Wsp.dll
  • Microsoft.VisualStudio.SharePoint.dll
  • Microsoft.VisualStudio.SharePoint.Commands.Implementation.v5.dll
  • Microsoft.VisualStudio.SharePoint.Designers.Models.dll
  • Microsoft.VisualStudio.SharePoint.Designers.Models.Features.dll
  • Microsoft.VisualStudio.SharePoint.Designers.Models.Packages.dll
  • Microsoft.Office.Sharepoint.Tools.dll

我通过使用本文中 Scott Hanselman 描述的 FusionLogs 方法发现缺少哪个 DLL

于 2016-03-10T14:19:45.560 回答