title: ResolveComReference task could not be loaded
body: <p>Win7, VS2017, ASP Net core app, target framework is 4.6.</p>
  
  <p>When I try to build my project with CLI (it is needed before dotnet commands calling) the error occurs:</p>
  
  <blockquote>
    <p>C:...\Microsoft.Common.CurrentVersion.targets(2547,5): error MSB4062:
    The "Microsoft.Build.T asks.ResolveComReference" task could not be
    loaded from the assembly Microsoft.Build.Tasks.Core, Version=15.1.0.0,
    Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.  Confirm that the
     declaration is correct, that the assembly and  all its
    dependencies are available, and that the task contains a public class
    that implements Microsoft.Build.Framework .ITask. [C:\project.csproj]</p>
  </blockquote>
  
  <p>I have been looking for questions related with my issue and have done the following things:</p>
  
  <ul>
  <li>restart VS</li>
  <li>clean and build the project with VS tools (it was successfully)</li>
  <li>load Microsoft.Build package</li>
  <li>remove content of packages folder and reload it</li>
  </ul>
  
  <p>But nothing helps me.</p>
  
  <p>What it can be?</p>