-
-
Notifications
You must be signed in to change notification settings - Fork 23.7k
Closed
Description
Tested versions
- Reproducible in 4.6.dev4.mono, 4.6.dev3.mono, 4.6.dev2.mono
- Not reproducible in 4.5.1.mono
System information
Godot v4.6.dev4.mono - Windows 11 (build 26100) - Multi-window, 2 monitors - OpenGL 3 (Compatibility) - NVIDIA GeForce RTX 5060 Ti (NVIDIA; 32.0.15.7688) - Intel(R) Core(TM) i5-14400F (16 threads) - 31.83 GiB memory
Issue description
When exporting any C# project in a debug build. It doesn't seem to include .cs files in the .pck file. This causes debug builds to fail.
ERROR: Cannot open file 'res://Main.cs'.
at: (modules/mono/utils/string_utils.cpp:152)
ERROR: Failed to read file: 'res://Main.cs'.
at: (modules/mono/csharp_script.cpp:2807)
ERROR: Cannot load C# script file 'res://Main.cs'.
at: (modules/mono/csharp_script.cpp:2887)
ERROR: Failed loading resource: res://Main.cs.
at: (core/io/resource_loader.cpp:343)
ERROR: Can't load dependency: 'res://Main.cs'.
at: (core/io/resource_format_binary.cpp:459)
ERROR: Error when trying to parse Variant.
at: (core/io/resource_format_binary.cpp:503)
ERROR: Error when trying to parse Variant.
at: (core/io/resource_format_binary.cpp:490)
ERROR: Failed loading resource: res://.godot/exported/133200997/export-3070c538c03ee49b7677ff960a3f5195-main.scn.
at: (core/io/resource_loader.cpp:343)
ERROR: Failed loading scene: res://main.tscn.
at: (main/main.cpp:4595)
Steps to reproduce
- Create a new C# project
- Write any C# code and attach it to a node
- Export the project with debug
Minimal reproduction project (MRP)
Metadata
Metadata
Assignees
Type
Projects
Status
Release Blocker