Skip to content

Installing GodotXUnit for GD 4.1 not working? #25

@aignermax

Description

@aignermax

Hi there, first of all thank you for creating this crucial project that enables everyone to actually use Godot for professional large scale applications.

To keep things short, I cannot activate the plugin nor can I find it in the AssetLib.

Here the Error Message from within Godot 4.1-AssetLib when clicking "Activate":

"Extension script at the following path could not be loaded: 'res://addons/GodotXUnit/Plugin.cs'. There appears to be an error in its source code.
The extension 'res://addons/GodotXUnit/plugin.cfg' will be disabled to prevent further errors."
image

Steps to Reproduce:

I am using Godot Engine 4.1 and Visual Studio 2022 Professional

  • Go to AssetLib tab and search for GodotXUnit and Install project. Don't enable yet.

  • But there is no GodotXUnit in the AssetLib for Godot 4.1 it seems (?) I cannot find it there
    image
    So I tried to download the Godot Zip from the Github Project Master branch instead and use "import[ieren]" to import the zip.
    image

  • I got a success message
    image

  • but it is not visible in the "installed addons" ("Installierte Erweiterungen" in german) Tab.
    image

  • So instead I copied it manually into a "res://addons/GodotXUnit" folder (I created the addons folder and pasted the GodotXUnit folder).

  • now I can see it.
    image

  • I opened my Connect-A-Pic.csproj file and added GodotTestRunner.cs Plugins.cs and XUnitDock.cs
    image

  • I ran the nuget restore command and it claimed to generate stuff and write an asset file project.asset.json and do other things
    image

  • I added the ProjectReference of GodotXUnitApi.csproj to my main project as well
    image

  • I started Visual Studio

  • I had to manually remove the folder "addons" from my VS-Project in Visual studio due to a lot of build errors.

  • but then the compilation worked fine having this project structure now
    image

  • and now as I go back to the godot Engine, I get the Error

"Extension script at the following path could not be loaded: 'res://addons/GodotXUnit/Plugin.cs'. There appears to be an error in its source code.

The extension 'res://addons/GodotXUnit/plugin.cfg' will be disabled to prevent further errors."

image

What did I do wrong? or is it currently not compatible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions