title: MSBuild of VS2017 cannot compile .NET Standard 2.0 project
body: <p>I have a csproj which targets .NET framework 4.6.1  and .NET Standard 2.0.</p>
  
  <p>It can be compiled in my local machine with Visual Studio 2017 (v15.3.2)</p>
  
  <p>Now I am setting up our building server(Jenkins) to include this project. Our building server works fine for other .NET framework 4.6.1 projects.</p>
  
  <p>First, I copied the toolchain from my local machine (<code>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\</code>) to the building server.</p>
  
  <p>Then I configured Jenkins to use the MSBuild v15.3.409.57025, which was copied from <code>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\MSBuild.exe</code></p>
  
  <p>But it results in the following error on compilation</p>
  
  <blockquote>
    <p>C:\Program Files
    (x86)\MSBuild\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.TargetFrameworkInference.targets(126,5):
    error : The current .NET SDK does not support targeting .NET Standard
    2.0.  Either target .NET Standard 1.6 or lower, or use a version of the .NET SDK that supports .NET Standard 2.0.</p>
  </blockquote>
  
  <p>The file <code>Microsoft.NET.TargetFrameworkInference.targets</code> was also copied from my local machine <code>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.TargetFrameworkInference.targets</code>. I checked its content in my local machine and saw a line below.</p>
  
  <p><code>
  &lt;Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"&gt;
  </code></p>
  
  <p>The <code>ToolsVersion</code> is still <code>14.0</code> in my VS2017 directory?</p>
  
  <p>Does anyone know how to solve it?</p>
  
  <p>Thanks </p>