我有一個簡單的SharePoint 2013解決方案,我可以通過Visual Studio發佈 - 這將爲我生成.wsp。然而,當我試圖運行由命令建立:Visual Studio 2017 msbuild包sharepoint
msbuild /t:Package mySolution.sln
打造的是確定,但包裝過程中我收到一個錯誤:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Microsoft\VisualStudio\v15.0\SharePointTools\Microsoft.VisualStudio.SharePoint.targets(190,5): error : Could not load file or assembly 'Microsoft.VisualStudio.Modeling.Sdk.15.0, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
如果我把這個缺少DLL到C:\ Program Files文件( x86)\ Microsoft Visual Studio \ 2017 \ Enterprise \ MSBuild \ Microsoft \ VisualStudio \ v15.0 \ SharePointTools然後我收到另一個錯誤關於另一個缺失的DLL ... 我做錯了什麼?
這裏的同樣的錯誤:HTTPS://developercommunity.visualstudio.com/content/problem/28775/can-not -create-WSP-包換的SharePoint-2013-pro.html。 Visual Studio團隊已確定此問題與SharePoint/Modeling SDK相關。所以我們建議您可以跟進SharePoint/Modeling SDK團隊的論壇。 –
我有同樣的問題,並在其論壇上提出問題:https://social.msdn.microsoft.com/Forums/office/en-US/f2394040-10db-45a2-bf92-5524f79200ad/building-wsps-via-命令行與vs2017?forum = sharepointdevelopment(希望這是正確的) –