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

Problem with deleting and renaming c# script #16211

Closed
111ukasz111 opened this issue Jan 30, 2018 · 3 comments
Closed

Problem with deleting and renaming c# script #16211

111ukasz111 opened this issue Jan 30, 2018 · 3 comments

Comments

@111ukasz111
Copy link

111ukasz111 commented Jan 30, 2018

Godot version:
3.0 stable mono version

OS/device including version:

windows10 geforce 920m

Issue description:

If I delete or rename c# scrip (delete from inspector and resources) Godot still want to found this files.

This is the project with this problem.
C#.zip

Steps to reproduce:

Godot just shouldn't want to found deleted scripts.
Minimal reproduction project:

@Zylann
Copy link
Contributor

Zylann commented Jan 30, 2018

Sounds like yet another occurrence of #12415
Unlike GDScript and other assets, C# assemblies get compiled using project files. You have to update those, deleting or renaming C# files is not enough (this is usually what an IDE does for you).
Your project file still references inexisting files.

Another important detail:
The file name must match the class name inside. You cannot name a file C#test.cs, because # is not an allowed character in class names.

@neikeq
Copy link
Contributor

neikeq commented Jan 30, 2018

Just for clarification, the plan is to make Godot update the project file when deleting or renaming C# files from the Godot editor but, like I mention in that issue, there is another issue blocking that right now.

@ghost ghost added this to the 3.1 milestone Jan 31, 2018
@akien-mga
Copy link
Member

Duplicate of #12917.

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

No branches or pull requests

4 participants