ResolveComReference task could not be loaded

Viewed 14497

Win7, VS2017, ASP Net core app, target framework is 4.6.

When I try to build my project with CLI (it is needed before dotnet commands calling) the error occurs:

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]

I have been looking for questions related with my issue and have done the following things:

  • restart VS
  • clean and build the project with VS tools (it was successfully)
  • load Microsoft.Build package
  • remove content of packages folder and reload it

But nothing helps me.

What it can be?

1 Answers
Related