Can Someone Please Help me compile Godot project with C#

Godot Version

4.2

Question

I can Compile C# projects with Godot.

Heres the Output:
iles will not be imported.
— Debug adapter server started —
— GDScript language server started on port 6005 —
[LSP] Connection Taken
editor/editor_node.cpp:6502 - An EditorPlugin build callback failed.
Cannot open file ‘res://C# Godo Testing/Player/Player.cs’.
Failed to read file: ‘res://C# Godo Testing/Player/Player.cs’.
Cannot load C# script file ‘res://C# Godo Testing/Player/Player.cs’.
Failed loading resource: res://C# Godo Testing/Player/Player.cs. Make sure resources have been imported by opening the project in the editor at least once.
Cannot open file ‘res://C# Godo Testing/Player/Player.cs’.
Failed to read file: ‘res://C# Godo Testing/Player/Player.cs’.
Cannot load C# script file ‘res://C# Godo Testing/Player/Player.cs’.
Failed loading resource: res://C# Godo Testing/Player/Player.cs. Make sure resources have been imported by opening the project in the editor at least once.
editor/filesystem_dock.cpp:3373 - Condition “da.is_null()” is true. Returning: false
editor/editor_node.cpp:1227 - Condition “!res.is_valid()” is true. Returning: ERR_CANT_OPEN
Cannot navigate to ‘res://C# Godo Testing/Player/Player.cs’ as it has not been found in the file system!
editor/filesystem_dock.cpp:3373 - Condition “da.is_null()” is true. Returning: false

Here the MSbuild output:
Cannot build from path containing ‘#’, move your project or update dotnet to the latest version. C:\Users\super.nuget\packages\godot.net.sdk\4.2.2\Sdk\Sdk.props(32,5)

As the error mention, MSBuild cannot build your project because your repository name contain the character “#”. Rename your repository “C# Godo Testing” to something like “CSharp Godot Testing”

1 Like