Building a solution with Godot 4.0 RC 4 C# opens new Godot instance ignoring --no-window and -q flags

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By krs

Hi!
I use VS Code. I installed “C# Tools for Godot” add-on. I generated assets to build and debug. Here is the problem - when executed, generated build task opens another Godot instance, while it shouldn’t.
Here is how the generated task looks:

{
"version": "2.0.0",
"tasks": [
    {
        "label": "build",
        "command": "Godot_v4.0-rc5_mono_linux.x86_64",
        "type": "process",
        "args": [
            "--build-solutions",
            "--path",
            "${workspaceRoot}",
            "--no-window",
            "-q"
        ],
        "problemMatcher": "$msCompile"
    }
]

I think --no-window flag is not working.
I am on Linux (Pop_OS) and I tried to craft the build command by myself, shuffling arguments all over the place, whatever I do it opens another Godot instance anyway.
Can someone please help or check on their own computer? Is that a bug or am I missing something? Thanks in advance.

I have the same issue with Godot 4.0 RC 5 on Windows.

lightyears | 2023-02-27 04:45

Just pinging you, @atsd just provided solution. In this new version 4 you don’t need to build it using godot executable, you just build it with dotnet build command.

krs | 2023-03-02 18:54

Thanks for the ping!

lightyears | 2023-03-03 00:43

:bust_in_silhouette: Reply From: atsd

This is (Totally different but simple effective) what works for me on windows; I hope that works on linux too

{
    "version": "2.0.0",
    "tasks": [
        {
            "label": "build",
            "command": "dotnet",
            "type": "shell",
            "args": [
                "build",
                "${workspaceRoot}"
            ]
        }
    ]
}

Thank you for the answer! I guess with version 4 we can just build it directly, without calling godot. Cool!

krs | 2023-03-02 18:51