I've installed both x86 & x64 sdk of .net core 2.0 on my laptop (win 7 sp1 x64). I don't know why the vs code (1.19.3 & x64 & official c# extension) always choose the x86 runtime auto to build my console and always meet error and popup message: "Only 64-bit processes can be debugged.".
Then I tried:
I read the question of .NET Core debugging with VS Code - “Only 64-bit processes can be debugged”. And seems not working for me at all followed the answer to change the json file and csproj file.
I've tried simple console project by running "C:\Program Files\dotnet\dotnet" new console. The error message is there while debugging.
Also, I've tried force to point to x64 runtime to build by modifying the file .vscode\tasks.json:
{
"version": "2.0.0", "tasks": [ { "taskName": "build", "command": "dotnet", --> change to "C:\\Program Files\\dotnet\\dotnet.exe" "type": "process", "args": [ "build", "${workspaceFolder}/VSDebugCoreTest.csproj" ], "problemMatcher": "$msCompile" } ]
}
The error message is still there "Only 64-bit processes can be debugged.".
I've x64 vscode, I've x64 sdk & runtime, I've create & compile with x64 version of sdk, and from the internal terminal show me the compiled succeeded.
Anyone know why and how to bypass this error and able to debugging? (please do NOT tell me to install VS, it's huge for me.)