Using a c# script as autoloader fails

Godot Version

4.3

Question

I want to create an autoload script by using a csharp script

using Godot;

namespace MyNameSpace

public partial class TestAutoload : Node
{
    public override void _Ready()
    {
        GD.Print("TestAutoload is ready!");
    }
}

I was able to register it in the project settings. But in the console I get
“Failed to create an autoload, script ‘res://main/TestAutoLoad.cs’ is not compiling.”

I have no build errors using dotnet build. I am using .NET8 and have assigned the Godot.NET SDK

Any help is appreciated

thx. I have deleted the solution and created it again. Now it works also :slight_smile:

when I build one ,it also fails ,
it works in Editor, But not the release or debug game version at Win