title: Visual Studio 2017 msbuild package sharepoint
body: <p>I have a simple SharePoint 2013 solution which I can publish through Visual Studio - this will generate .wsp for me. However when I am trying to run build by the command:</p>
  
  <pre><code>msbuild /t:Package mySolution.sln
  </code></pre>
  
  <p>Build is ok but during packaging I receive an error:</p>
  
  <blockquote>
    <p>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.</p>
  </blockquote>
  
  <p>If I put this missing dll to C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Microsoft\VisualStudio\v15.0\SharePointTools then I receive another error about another missing dll... 
  What am I doing wrong?</p>