最後它的工作原理。
用於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