Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Godot Mono: InvalidProjectFileException on folder rename. #56095

Closed
tx350z opened this issue Dec 20, 2021 · 3 comments · Fixed by #56101
Closed

Godot Mono: InvalidProjectFileException on folder rename. #56095

tx350z opened this issue Dec 20, 2021 · 3 comments · Fixed by #56101

Comments

@tx350z
Copy link

tx350z commented Dec 20, 2021

Godot version

v3.4.stable.mono.official [206ba70]

System information

Windows 8.1

Issue description

Renaming a project folder generates the following exception.

ERROR: Microsoft.Build.Exceptions.InvalidProjectFileException: The project file could not be loaded. Could not find file "C:\dev2\gd_monolab\gd_monolab.csproj" C:\dev2\gd_monolab\gd_monolab.csproj at: debug_send_unhandled_exception_error (modules/mono/mono_gd/gd_mono_utils.cpp:369)

The .csproj file is not created until a .cs script is created and opened for editing.

Steps to reproduce

Launch Godot Mono
Create a new project.
Add a folder to the project.
Rename the folder.

Minimal reproduction project

No response

@raulsntos
Copy link
Member

raulsntos commented Dec 20, 2021

Just to confirm, this issue is about renaming a folder from the FileSystem dock before a .csproj is generated, right?

  • Does renaming the folder from the Windows Explorer cause any issues?
  • If you manually create the solution (Project > Tools > Mono > Create C# solution), does renaming a folder after that work?

Since renaming is basically the same as moving, I expect the same issue to happen when moving folders. Also, removing folders probably causes the same issue. Can you confirm?

I've opened #56101 to fix this issue.

@akien-mga
Copy link
Member

Fixed by #56101.

@akien-mga akien-mga added this to the 3.5 milestone Dec 20, 2021
@tx350z
Copy link
Author

tx350z commented Dec 21, 2021

Many thanks for the quick work! You folks are under appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants