williamoberg / godot-dotnet-tools

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

Add support for flatpack version of godot #9

Open Nikitf777 opened 1 month ago

Nikitf777 commented 1 month 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 1 week ago

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