williamoberg / godot-dotnet-tools

Generate .NET related files for your Godot project
https://marketplace.visualstudio.com/items?itemName=woberg.godot-dotnet-tools
MIT License
11 stars 1 forks source link

Add support for flatpack version of godot #9

Open Nikitf777 opened 6 months ago

Nikitf777 commented 6 months ago

There is an unofficial flatpack package of Godot called "org.godotengine.GodotSharp". It also can be used to debug from Visual Studio Code, but launch.json will looks a bit different:

    {
      "name": "Launch",
      "type": "coreclr",
      "request": "launch",
      "program": "flatpak",
      "preLaunchTask": "build",
      "args": [
        "run",
        "org.godotengine.GodotSharp",
        "--path",
        "${workspaceRoot}"
      ],
      "cwd": "${workspaceFolder}",
      "console": "internalConsole",
      "stopAtEntry": false
    },
    {
      "name": "Launch Editor",
      "type": "coreclr",
      "request": "launch",
      "program": "flatpak",
      "preLaunchTask": "build",
      "args": [
        "run",
        "org.godotengine.GodotSharp",
        "--path",
        "${workspaceRoot}",
        "--editor"
      ],
      "cwd": "${workspaceFolder}",
      "console": "internalConsole",
      "stopAtEntry": false
    },
Fireye04 commented 5 months ago

Have been banging my head on this for a few hours, solution worked perfectly. Thank you!! <3