✅ Fedora 40, dotnet 8 sdk, can’t use debugging tools in vscode.

Hi, has anyone else had a similar issue with dotnet on Fedora 40 or in general?


Could not execute because the specified command or file was not found.
Possible reasons for this include:
• You misspelled a built-in dotnet command.
• You intended to execute a .NET program, but dotnet-/home/username/GodotEngine/Godot_v4.3-stable_mono_linux_x86_64/Godot_v4.3-stable_mono_linux.x86_64 does not exist.
• You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.”
Could not execute because the specified command or file was not found.
Possible reasons for this include:
• You misspelled a built-in dotnet command.
• You intended to execute a .NET program, but dotnet-/home/username/GodotEngine/Godot_v4.3-stable_mono_linux_x86_64/Godot_v4.3-stable_mono_linux.x86_64 does not exist.
• You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.”


Haven’t found much online about this problem. I was only able to find solutions related to dotnet-ef which didn’t resolve my issue. I can’t start debugging my C# code due to this error. Path to executable is correct and when I run dotnet —version command in terminal, it outputs sdk’s version which is 8.0.108.
This happens both in vscode and when just running through the terminal.
47 Replies
jcotton42
jcotton425w ago
@warriormaster share the output of dotnet --info
warriormaster
warriormaster5w ago
One moment
warriormaster
warriormaster5w ago
@beware of the leopard Here's the output.
warriormaster
warriormaster5w ago
Sdk was installed via dnf-package manager as Microsoft’s site recommended.
warriormaster
warriormaster5w ago
https://discussion.fedoraproject.org/t/dotnet-8-xx-packages-on-fedora-40-updates-repo-do-not-istall-sdk-correctly/130501/2 Found this forum and tried to update dotnet to a bit newer version (8.0.402). Nothing, still happens.
Fedora Discussion
Dotnet 8.xx packages on fedora (40) "updates" repo do not istall SD...
It seems to work for me: > sudo dnf list dotnet* --installed Installed Packages dotnet-apphost-pack-8.0.x86_64 8.0.8-1.fc40 @updates dotnet-host.x86_64 8.0.8-1.fc40 @updates dotnet-hostfxr-8.0.x86_64 8.0.8-1.fc40 @updates dotnet-runtime-8.0.x86_64 8.0.8-1.fc40 @...
Unknown User
Unknown User5w ago
Message Not Public
Sign In & Join Server To View
warriormaster
warriormaster5w ago
@TeBeCo So how does this would apply in the case of Godot? Based on Godot's documentation: https://docs.godotengine.org/en/stable/tutorials/scripting/c_sharp/c_sharp_basics.html I just need to create tasks.json and launch.json to get debugging working in vscode. That I don't even need to install any dotnet tools.
Godot Engine documentation
C# basics
Introduction: This page provides a brief introduction to C#, both what it is and how to use it in Godot. Afterwards, you may want to look at how to use specific features, read about the differences...
Unknown User
Unknown User5w ago
Message Not Public
Sign In & Join Server To View
warriormaster
warriormaster5w ago
I could try another reboot since I just installed mono-dev package according to godot's doc. But it is very weird how I can I launch and build a project but not debug the C# code. Normally godot wouldn't even open if dotnet-sdk wasn't installed. The documentation mentioned something about installing mono on linux systems
Unknown User
Unknown User5w ago
Message Not Public
Sign In & Join Server To View
warriormaster
warriormaster5w ago
This is the link that godot documentation pointed to https://www.mono-project.com/download/stable/#download-lin
Unknown User
Unknown User5w ago
Message Not Public
Sign In & Join Server To View
warriormaster
warriormaster5w ago
Godot Engine documentation
C# basics
Introduction: This page provides a brief introduction to C#, both what it is and how to use it in Godot. Afterwards, you may want to look at how to use specific features, read about the differences...
warriormaster
warriormaster5w ago
Basically ran
sudo dnf install mono-devel
sudo dnf install mono-devel
Unknown User
Unknown User5w ago
Message Not Public
Sign In & Join Server To View
warriormaster
warriormaster5w ago
No worries. I'm just glad to receive help :)
Unknown User
Unknown User5w ago
Message Not Public
Sign In & Join Server To View
warriormaster
warriormaster5w ago
Brilliant :D No luck rebooting:

Application Insights Telemetry: {"name":"AppEvents","time":"2024-10-02T18:09:35.6230682Z","iKey":"74cc1c9e-3e6e-4d05-b3fc-dde9101d0254","tags":{"ai.device.osVersion":"fedora","ai.cloud.roleInstance":"AN4TQV39R30.(none)","ai.session.id":"da73705b-a599-41dd-980c-a76231d6da9c","ai.internal.sdkVersion":"dotnetc:2.21.0-429"},"data":{"baseType":"EventData","baseData":{"ver":2,"name":"dotnet/cli/toplevelparser/command","properties":{"Libc Release":"stable","OS Platform":"Linux","Libc Version":"2.39","verb":"292585835e9753566ac36af8287077cd31a69d7cd53835f76d22348777e1fe4e","Machine ID":"885057416084c6685d10e712045efc711866e0bd90533429cda5e482a86b5f61","Continuous Integration":"False","OS Architecture":"X64","Product Version":"8.0.402","Output Redirected":"True","OS Version":"40","Current Path Hash":"1967b918f903a2bc22b907eccebbe2ea1995f69d24375f2b096619370e1a5859","event id":"2f7ffd3a-17db-4f2c-a161-56b121e1dd1a","Machine ID Old":"885057416084c6685d10e712045efc711866e0bd90533429cda5e482a86b5f61","Kernel Version":"Fedora Linux 40 (KDE Plasma)","Runtime Id":"linux-x64","Docker Container":"False"},"measurements":{"Parse Time":92.4155,"Startup Time":163.011}}}}
Could not execute because the specified command or file was not found.
Possible reasons for this include:
* You misspelled a built-in dotnet command.
* You intended to execute a .NET program, but dotnet-~/GodotEngine/Godot_v4.3-stable_mono_linux_x86_64/Godot_v4.3-stable_mono_linux.x86_64 does not exist.
* You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.

Application Insights Telemetry: {"name":"AppEvents","time":"2024-10-02T18:09:35.6230682Z","iKey":"74cc1c9e-3e6e-4d05-b3fc-dde9101d0254","tags":{"ai.device.osVersion":"fedora","ai.cloud.roleInstance":"AN4TQV39R30.(none)","ai.session.id":"da73705b-a599-41dd-980c-a76231d6da9c","ai.internal.sdkVersion":"dotnetc:2.21.0-429"},"data":{"baseType":"EventData","baseData":{"ver":2,"name":"dotnet/cli/toplevelparser/command","properties":{"Libc Release":"stable","OS Platform":"Linux","Libc Version":"2.39","verb":"292585835e9753566ac36af8287077cd31a69d7cd53835f76d22348777e1fe4e","Machine ID":"885057416084c6685d10e712045efc711866e0bd90533429cda5e482a86b5f61","Continuous Integration":"False","OS Architecture":"X64","Product Version":"8.0.402","Output Redirected":"True","OS Version":"40","Current Path Hash":"1967b918f903a2bc22b907eccebbe2ea1995f69d24375f2b096619370e1a5859","event id":"2f7ffd3a-17db-4f2c-a161-56b121e1dd1a","Machine ID Old":"885057416084c6685d10e712045efc711866e0bd90533429cda5e482a86b5f61","Kernel Version":"Fedora Linux 40 (KDE Plasma)","Runtime Id":"linux-x64","Docker Container":"False"},"measurements":{"Parse Time":92.4155,"Startup Time":163.011}}}}
Could not execute because the specified command or file was not found.
Possible reasons for this include:
* You misspelled a built-in dotnet command.
* You intended to execute a .NET program, but dotnet-~/GodotEngine/Godot_v4.3-stable_mono_linux_x86_64/Godot_v4.3-stable_mono_linux.x86_64 does not exist.
* You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.
Unknown User
Unknown User5w ago
Message Not Public
Sign In & Join Server To View
warriormaster
warriormaster5w ago
Mono or godot? As far as I understood, it’s only for 4.4 and up
Unknown User
Unknown User5w ago
Message Not Public
Sign In & Join Server To View
warriormaster
warriormaster5w ago
That's a link to .net version of godot, not sdk.
warriormaster
warriormaster5w ago
If you mean this sdk then like I said. It's only for 4.4 and up https://www.nuget.org/packages/Godot.NET.Sdk/4.4.0-dev.3
Godot.NET.Sdk 4.4.0-dev.3
MSBuild .NET Sdk for Godot projects.
warriormaster
warriormaster5w ago
And I use 4.3 Basically mono is with c# support and linux stable is only gdscript. Here's everything that I have in PATH:
/home/alexander/.nvm/versions/node/v20.17.0/bin:/home/alexander/ProgrammingProjects/SDK/Vulkan/x86_64/bin:/home/alexander/.local/bin:/home/alexander/.cargo/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/alexander/.dotnet/tools:/home/alexander/.dotnet/tools
/home/alexander/.nvm/versions/node/v20.17.0/bin:/home/alexander/ProgrammingProjects/SDK/Vulkan/x86_64/bin:/home/alexander/.local/bin:/home/alexander/.cargo/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/alexander/.dotnet/tools:/home/alexander/.dotnet/tools
Unknown User
Unknown User5w ago
Message Not Public
Sign In & Join Server To View
warriormaster
warriormaster5w ago
No Don't remember how to do it.
Unknown User
Unknown User5w ago
Message Not Public
Sign In & Join Server To View
warriormaster
warriormaster5w ago
You can in godot create a node in the scene and add a c# script to that.
Unknown User
Unknown User5w ago
Message Not Public
Sign In & Join Server To View
warriormaster
warriormaster5w ago
Sorry for taking some time to respond I'll try it. Just forgot to draw NewScript.cs to MainScene node @TeBeCo just tried the alias:
Could not execute because the specified command or file was not found.
Possible reasons for this include:
* You misspelled a built-in dotnet command.
* You intended to execute a .NET program, but dotnet-godot does not exist.
* You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.
Could not execute because the specified command or file was not found.
Possible reasons for this include:
* You misspelled a built-in dotnet command.
* You intended to execute a .NET program, but dotnet-godot does not exist.
* You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.
Alias itself works as expected.
Unknown User
Unknown User5w ago
Message Not Public
Sign In & Join Server To View
warriormaster
warriormaster5w ago
dotnet godot
dotnet godot
Unknown User
Unknown User5w ago
Message Not Public
Sign In & Join Server To View
warriormaster
warriormaster5w ago
Maybe my ssd is dying? Though I bought this laptop last year so should be very unlikely.
Unknown User
Unknown User5w ago
Message Not Public
Sign In & Join Server To View
warriormaster
warriormaster5w ago
I assumed that's what the launch.json does behind the scenes
Unknown User
Unknown User5w ago
Message Not Public
Sign In & Join Server To View
warriormaster
warriormaster5w ago
Which vscode extensions you have installed?
Unknown User
Unknown User5w ago
Message Not Public
Sign In & Join Server To View
warriormaster
warriormaster5w ago
You've got to be kidding me if this debugging didn't work because I used vscodium instead of vscode.
Unknown User
Unknown User5w ago
Message Not Public
Sign In & Join Server To View
warriormaster
warriormaster5w ago
Did you install vscode via dnf?
Unknown User
Unknown User5w ago
Message Not Public
Sign In & Join Server To View
warriormaster
warriormaster5w ago
I think I'm going to blow my brains It FUCKING worked
Unknown User
Unknown User5w ago
Message Not Public
Sign In & Join Server To View
MODiX
MODiX5w ago
If you have no further questions, please use /close to mark the forum thread as answered
warriormaster
warriormaster5w ago
Same here I guess don't use vscodium And thank you very much You are true hero 💪
Want results from more Discord servers?
Add your server