Visual Studio 2019 16.2.0 Method not found

  • Thread starter Thread starter Petr B
  • Start date Start date
P

Petr B

Guest
I tried open development command line, typed msbuild /version and run.

There is error Method not found 'System.String Microsoft.Build.Evaluation.ProjectCollection.get_DisplayVersion()'.

Something is wrong. I have problem open solution file through api. Project can be opened but when I open solution there is message:

The "GetReferenceNearestTargetFrameworkTask" task could not be instantiated from the assembly "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.Build.Tasks.dll". Please verify the task assembly has been built using the same version of the Microsoft.Build.Framework assembly as the one installed on your computer and that your host application is not missing a binding redirect for Microsoft.Build.Framework. Unable to cast object of type 'NuGet.Build.Tasks.GetReferenceNearestTargetFrameworkTask' to type 'Microsoft.Build.Framework.ITask'.

Continue reading...
 
Back
Top