Closed LeonSolisPedro closed 1 year ago
You can set your DOTNET_ROOT
to the path where dotnetx64
is or in setting you can set omnisharp.dotNetCliPaths
to the dotnetx64 one.
Thank you so much it now works!!!
I've just set "omnisharp.dotNetCliPaths": ["/usr/local/share/dotnet/x64"]
and now I can debug the app
But I have a problem, when I try to create a launch.json file, its crashes when I try to run it. it says You must install or update .NET to run this application
it seems that its still trying to use dotnet
instead of dotnetx64
Is there any way to change the launch.json file? or should I stop using it? (I've read in the documentation that I shouldn't be using launch.json anymore)
Is there any way to change the launch.json file?
Can you elaborate on what you were doing here that you got the error message?
should I stop using it? (I've read in the documentation that I shouldn't be using launch.json anymore)
With vscode-dotnettools, we encourage using the built in debug capabilities described in https://code.visualstudio.com/docs/csharp/debugging. However, you can still use launch.json if that works for you.
Can you elaborate on what you were doing here that you got the error message?
So sorry, I didn't know that I was creating the launch.json file incorrectly I was clicking in Run and Debug -> create a launch.json file -> .NET 5+ and .NET Core -> Pressing F5
I managed to find a launch.json file that now works, thank you for your patience.
{
"configurations": [
{
"name": "C#: Web",
"type": "dotnet",
"request": "launch",
"projectPath": "${workspaceFolder}/Web/Web.csproj",
"launchConfigurationId": "TargetFramework=;Web"
}
]
}
I still couldn't find any documentation regarding this launch.json... but it now works for me...
That configuration should be whats generated when you run vscode -> Solution Explorer -> Debug -> Start New Instance
.
However if you are able to work with it for now I will close this issue.
Feel free to reopen if you are encountering the same issue or file a new issue if its a different problem you are experiencing.
Thank you so much for the help!
Type: Bug
Issue Description
I'm trying to debug a simple Net Core 3.1 web app using this extension and I can't seem to make it work. I suspect its because this extensions expects
dotnet
instead ofdotnetx64
whoever, I'm very new to this and I don't know how to "properly" change the C# Dev Kit extension to point todotnetx64
instead. Can someone help me how to change it?Steps to Reproduce
I run
dotnetx64 new mvc
I opened withvscode -> Solution Explorer -> Debug -> Start New Instance
Expected Behavior
Be able to debug the app
Actual Behavior
It crashes with
Unable to attach to CoreCLR. Unknown Error: 0x80131c3c
Logs
Archive.zip
C# log
C# LSP Trace Logs
Environment information
VSCode version: 1.82.0 C# Extension: 2.1.2 Using OmniSharp: false
Dotnet Information
.NET SDK: Version: 7.0.400 Commit: 73bf45718d Runtime Environment: OS Name: Mac OS X OS Version: 13.5 OS Platform: Darwin RID: osx.13-arm64 Base Path: /usr/local/share/dotnet/sdk/7.0.400/ Host: Version: 7.0.10 Architecture: arm64 Commit: a6dbb800a4 .NET SDKs installed: 6.0.413 [/usr/local/share/dotnet/sdk] 7.0.400 [/usr/local/share/dotnet/sdk] .NET runtimes installed: Microsoft.AspNetCore.App 6.0.21 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 7.0.10 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 6.0.21 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 7.0.10 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Other architectures found: x64 [/usr/local/share/dotnet/x64] Environment variables: Not set global.json file: Not found Learn more: https://aka.ms/dotnet/info Download .NET: https://aka.ms/dotnet/downloadVisual Studio Code Extensions
|Extension|Author|Version|Folder Name| |---|---|---|---| |csdevkit|ms-dotnettools|0.4.10|ms-dotnettools.csdevkit-0.4.10-darwin-arm64| |csharp|ms-dotnettools|2.1.2|ms-dotnettools.csharp-2.1.2-darwin-arm64| |github-plus-theme|thenikso|1.4.3|thenikso.github-plus-theme-1.4.3| |night-owl|sdras|2.0.1|sdras.night-owl-2.0.1| |nugetpackagemanagergui|aliasadidev|2.0.6|aliasadidev.nugetpackagemanagergui-2.0.6| |php-debug|xdebug|1.33.0|xdebug.php-debug-1.33.0| |regex-text-gen|rioj7|0.14.0|rioj7.regex-text-gen-0.14.0| |volar|Vue|1.8.10|vue.volar-1.8.10| |vscode-dotnet-runtime|ms-dotnettools|1.7.2|ms-dotnettools.vscode-dotnet-runtime-1.7.2| |vscode-intelephense-client|bmewburn|1.9.5|bmewburn.vscode-intelephense-client-1.9.5| |vscode-typescript-vue-plugin|Vue|1.8.10|vue.vscode-typescript-vue-plugin-1.8.10| |vscodeintellicode-csharp|ms-dotnettools|0.1.26|ms-dotnettools.vscodeintellicode-csharp-0.1.26-darwin-arm64| |vscord|LeonardSSH|5.1.18|leonardssh.vscord-5.1.18|;Extension version: 0.4.10 VS Code version: Code 1.82.0 (8b617bd08fd9e3fc94d14adb8d358b56e3f72314, 2023-09-06T22:08:29.670Z) OS version: Darwin arm64 22.6.0 Modes:
System Info
|Item|Value| |---|---| |CPUs|Apple M1 (8 x 24)| |GPU Status|2d_canvas: enabledcanvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|2, 2, 2| |Memory (System)|16.00GB (0.15GB free)| |Process Argv|--crash-reporter-id 9ca304b8-8414-49c2-b27e-a34ce7f34cb3| |Screen Reader|no| |VM|0%|
A/B Experiments
``` vsliv368cf:30146710 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 vscoreces:30445986 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593cf:30376535 pythonvs932:30410667 vsclangdf:30486550 c4g48928:30535728 dsvsc012:30540252 pynewext54:30695312 azure-dev_surveyonecf:30548226 vsccc:30803844 282f8724:30602487 89544117:30613380 a9j8j154:30646983 showlangstatbar:30737416 0bi6i642:30831757 03d35959:30757346 ecj1e332:30736112 pythonfmttext:30731395 9b8hh234:30694863 fixshowwlkth:30771522 showindicator:30805244 pythongtdpath:30769146 i26e3531:30792625 pythonnosmt12:30797651 pythonidxpt:30805730 pythonnoceb:30805159 asynctok:30821568 dsvsc013:30795093 dsvsc014:30804076 diffeditorv1:30821571 dsvsc015cf:30829746 ```