none
Building WSPs via command line with VS2017 RRS feed

  • Question

  • We recently switched to VS2017 and discovered that our sharepoint wsp build is not working on the build agent.

    I can build it via VS2017 itself, but I'm unable to do it via command line. The same problem was reported here by someone else:

    https://developercommunity.visualstudio.com/content/problem/28775/can-not-create-wsp-package-for-sharepoint-2013-pro.html

    http://stackoverflow.com/questions/42764459/visual-studio-2017-msbuild-package-sharepoint

    Does anybody know how to fix this?

    To reproduce the error:

    msbuild /t:Package mySolution.sln

    (and the sln contains a SharePoint 2013 project)

    result:

    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.

     
    Thursday, March 16, 2017 8:11 AM

All replies