最后它的工作原理。
用于MSBuild.exe的标志是/p:IsPackaging = true,您可以在TeamCity构建步骤的命令行参数中输入它。
我添加目录C下列DLL:\程序文件(x86)\的MSBuild \ 14.0 \斌:
- 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
- 微软.Office.Sharepoint.Tools.dll
我发现了DLL缺少通过使用FusionLogs方法通过斯科特汉塞尔尔曼在this article
描述同时,我发现我必须添加作为命令行PARAM参加TeamCity构建步骤'/ p:IsPackaging = true'。现在添加必要的DLL并修复其他问题... – AllWorkNoPlay
现在我遇到以下错误:[ValidatePackage] C:\ Program Files(x86)\ MSBuild \ Microsoft \ VisualStudio \ v14.0 \ SharePointTools \ Microsoft.VisualStudio .SharePoint.targets(450,5):无法加载一个或多个请求的类型。检索LoaderExceptions属性以获取更多信息。我想我将不得不问我自己的生成服务器并安装完整的Visual Studio 2015与Office开发工具:( – AllWorkNoPlay