Hi,

The VS Code-integration in Windows 10 seems to be broken.

I followed the guide you posted, but it does not work.

I also tried this guide on Youtube.

When i try to Run with debug from VS Code it just gets stuck with a "Building.." spinner
The game window opens but closes again and a new instance of Godot Editor is opened.
In this editor there are no errors. In VS Code there are no errors.
But I notice an odd think here:
On the bottom pane there is a MSBuild tab. It shows the solution was built without errors.

But aren't we supposed to use dotnet CLI to build? However, i Godots Editor settings there is no such menu, shown in the Youtube guide I linked above. There is only Mono > Editor,
no Mono > Builds.
Could this be the issue? Is there another way for me to configure dotnet CLI to build? Commandline input to Godot?

I have .net 6 SDK and latest VS Code installed.
Godot version: Godot_v4.0-beta1_mono_win64.exe
VS Code Godot C# extension is installed and enabled.
Also i should mention that I did edit the launch.json and tasks.json files in .vscode with my Godot executable path. Are there other fields like commandline switches I could put in there that could work? Is there any log files I can investigate? A Godot debug-mode that shows more info?

I just want to make a simple game in C# with VSCode and Godot 🙁
It looks like a nice environment to work with but it shouldn't be this difficult?

Thanks,
JacSwe

For Godot 4.0 you need the .NET 6.0 SDK. That page you linked to is for Godot 3.x documentation, and it doesn't look like it's been updated.

    Update: I got it working in Visual Studio 2022 with the extension and by manually changing my csproj-file to this. Debugging with breakpoints works.

    Click to reveal Click to hide

    <Project Sdk="Godot.NET.Sdk/4.0.0-beta1">
    <PropertyGroup>
    <TargetFramework>net6.0</TargetFramework>
    <EnableDynamicLoading>true</EnableDynamicLoading>
    <StartAction>Program</StartAction>
    <StartProgram>C:\godot\Godot_v4.0-beta1_mono_win64\Godot_v4.0-beta1_mono_win64.exe</StartProgram>
    <StartArguments>--path C:\GameProjects\godot4b1\godotVS</StartArguments>
    </PropertyGroup>
    </Project>

    No luck in VS Code yet.

    cybereality Thanks, I followed your guide, but nothing happens when I click Start [Play in Editor]
    No messages in Output or Debug consoles in VS Code. No reaction in Godot Editor.

    I just tried it on Linux and I get the same thing. It says Building... forever. I don't know.