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:

    Does anybody know how to fix this?

    To reproduce the error:

    msbuild /t:Package mySolution.sln

    (and the sln contains a SharePoint 2013 project)


    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=, 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