Visual Studio 2017 to 2019 Unit Test "BuildShadowTask" Error

  • Thread starter Thread starter BobFakes
  • Start date Start date
B

BobFakes

Guest
Hello,

After moving to VS 2019 my unit tests won't compile anymore with the following error:

The "BuildShadowTask" task could not be loaded from the assembly C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VisualStudio\v15.0\TeamTest\Microsoft.VisualStudio.TestTools.BuildShadowsTask.dll. Could not load file or assembly 'file:///C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VisualStudio\v15.0\TeamTest\Microsoft.VisualStudio.TestTools.BuildShadowsTask.dll' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> 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.

It appears it is still referencing v15.0 instead of v16.0 in the path, but I can't find where to update it.

Continue reading...
 
Back
Top