vscode .net framework 4.8; debug clr without dotnet exe
I'm trying to setup vscode with a legacy .net framework console app project. I understand that the C# extension is on limited support.
There's a wiki that describes how to setup the project with a debugger: https://github.com/dotnet/vscode-csharp/wiki/Desktop-.NET-Framework
My build task creates a PDB and executable just fine, but the launch task, as documented, tries to execute
dotnet
for some reason, and errors out before even trying to launch in the internal console. I do not have the dotnet
executable installed on purpose (to avoid mixing .net core tools with this .net framework 4 project).
Is there a way I'm supposed to run the vscode debugger with clr but without the dotnet executable?GitHub
Desktop .NET Framework
Official C# support for Visual Studio Code. Contribute to dotnet/vscode-csharp development by creating an account on GitHub.
1 Reply
I think I'll just also install .net core, for the sake of the vscode-csharp extension to work... This'll be gnarly to keep from cross-pollinating.
yep, that did the trick. the vscode-csharp extension source doesn't have enough guards around its use of dotnet --info. I see it in just one of its usage, but then it's everywhere.