Describe the bug
Importing MSTest.TestFramework starting from version 4.0.0, and including current released version 4.0.2 in a C++ project results in a warning. Further this warning causes Intellisense to stop code completion regarding functions in the related assembly and reports false positives regarding them.
Steps To Reproduce
-
Create a .net10 (NetCore) C++ project, Import the following packages:
-
Create a test class and a test method
-
Compile
See reproduction project:
UnitTest_dotnet10_Test.zip
Expected behavior
No warnings
Actual behavior
Warning C4679 is thrown:
'Microsoft::VisualStudio::TestTools::UnitTesting::TestMethodAttribute::set': could not import item or its associated custom attribute
Workaround
To fix the warnings during compilation we surpressed C4679:
4679
However, that did not fix Intellisense reports.
Describe the bug
Importing MSTest.TestFramework starting from version 4.0.0, and including current released version 4.0.2 in a C++ project results in a warning. Further this warning causes Intellisense to stop code completion regarding functions in the related assembly and reports false positives regarding them.
Steps To Reproduce
Create a .net10 (NetCore) C++ project, Import the following packages:
Create a test class and a test method
Compile
See reproduction project:
UnitTest_dotnet10_Test.zip
Expected behavior
No warnings
Actual behavior
Warning C4679 is thrown:
'Microsoft::VisualStudio::TestTools::UnitTesting::TestMethodAttribute::set': could not import item or its associated custom attribute
Workaround
To fix the warnings during compilation we surpressed C4679:
4679
However, that did not fix Intellisense reports.