I am taking the Anysphere C# extension for a test drive. It seems very unstable unfortunately. I am testing it on an M4 Mac with the GitHub - JamesNK/Newtonsoft.Json: Json.NET is a popular high-performance JSON framework for .NET repository.
A few things that don’t seem to work well:
- Test discovery/test runner:
Notice how in one file there’s Intellisense, but the other doesn’t have it. These files are right next to one another.
- Clicking “Debug test” does not work. It results in an error like this:
Starting test discovery
Microsoft.VisualStudio.TestPlatform.ObjectModel.TestPlatformException: Could not find 'dotnet' host for the 'X64' architecture.
You can resolve the problem by installing the 'X64' .NET.
It doesn’t seem possible to set the .NET SDK that the extension itself runs under.
Debugging these tests in VS Code works without issue:
It would be great if there was some additional logging that could be enabled, or if the extensions were open source in some way so we could try fixing this ourselves.
Happy to help fix these issues!
Thank you!