Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Type 'TestClassAttribute' exists in both 'Microsoft.VisualStudio.QualityTools.UnitTestFramework and 'Microsoft.VisualStudio.TestPlatform.TestFramework

After update the test project NuGet i got this error:

The type 'TestClassAttribute' exists in both 'Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' and 'Microsoft.VisualStudio.TestPlatform.TestFramework, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

Which one i should keep?

like image 731
MiguelSlv Avatar asked Sep 27 '18 17:09

MiguelSlv


1 Answers

I drop the Microsoft.VisualStudio.QualityTools.UnitTestFramework from the unit test project references and it worked. It successfully compile and run my tests.

I couldn't find any documentation that supports this fix.

like image 179
MiguelSlv Avatar answered Oct 18 '22 19:10

MiguelSlv