Attempting to associate test cases from Test Explorer in VS 2022/2026 Professional throws an exception
I installed Visual Studio 2026 Professional on Monday and today updated to v18.1.0. Our test projects built with .NET 9 & 10 and currently reference Microsoft.NET.Test.Sdk v18.0.1 and use MSTest methods. As I had submitted a defect report for associating test cases from Test Explorer for VS 2022, I was curious to see how this works with the new IDE, but after opening TestExplorer, I was immediately disappointed to find that when I right-clicked on a test method and then clicked the 'Associate to Test Case' context menu item, the error in the image below is returned. Unfortunately, the same error is now also present in VS 2022 Professional which means there is no long any practical means of associating automated test methods in Visual Studio with the corresponding test cases in AZDO:
I'm a bot. Here is a possible related and/or duplicate issue (I may be wrong):
- https://github.com/microsoft/vstest/issues/15111
Interesting to note that a co-worker reports this works as designed/expected in Visual Studio 2026 Community:
Is that the same project / solution?
The error is coming from the new testing platform where test case association is not supported, and you already commented there: https://github.com/microsoft/testfx/issues/4477#issuecomment-3639549604
In VSTest everything should be working and if it does not please provide more info about your project so we can investigate.
Is that the same project / solution?
My co-worker repeated the exercise with my project with no issues. I am currently updating my install of Visual Studio 2026 to replicate the individual workloads he is using in VS 2026 Community.
closing for now, please let me know if you were able to link it back to vstest, and not just mtp.