Godot C# VS Code integration problems

Godot Version

mono 4.4.1

Question

Hello everyone!
When using any project with .NET, having set up the godot-tools extension, .NET SDK, set Godot to use VS Code as an external editor and then trying to start any of the launch profiles in VS Code, nothing works.
“Play in Editor” does literally nothing, “Launch” launches Godot, builds the project and then infinitely awaits the “build” preTask (the build within Godot finishes just as it should!). I tried replacing the godot build pre task with a simple dotnet project build, which does finish, but still the debugger does not connect nor does the game even start at all.

I tried this on Debian on another machine and on Windows on my main PC, so the platform should not be the problem.

Thanks for any help or ideas what i could try.

Hello,

As a C# programmer myself, unfortunately you cannot directly build and run your game from VS code itself. The only way it to build and run it, is by using Godot.

I use Visual Studio (Not VSCode), and it throws an error saying “A project with Output type class library cannot be started directly”, when I try to do the same.

So, this isn’t a bug/error but rather how C# projects work.
By the way, what was stopping you earlier from building it using Godot already?

Thanks.