Closed baronfel closed 1 year ago
Hi - the real problem is that the extension needs to know about SDK versions and locations (to detect when the language server won’t load due to incompatible runtime) and dotnet.exe doesn’t provide a machine-parseable output format (the language server has to do the same thing in some cases but is at least helped by the MSBuildLocator library these days). Should be easy enough to fix though :)
Opened #102 to address this issue temporarily.
This should be working correctly now as of v0.4.6 (just published it to the gallery).
I'm hoping the new mechanism being used to discover .NET SDK information should be a little more robust/future-proof 🙂
With version 0.4.3 of this extension, I can't seem to get the extension to activate. The VSCode extension host logs say the following:
, and when I dig into this a bit, I think the root cause is because the shape of
dotnet --info
has changed. Here's my output:The big difference here is that there's a section called
global.json file
in the output that I don't think the code knows about.More broadly, though, why is the version of the host specifically interesting? If the idea is just to check for a minimum 5.0 version, why not use the output of
dotnet --version
instead:I think this would be much more stable. This is what we do in Ionide for similar purposes.