I am using c# for my project, so I am editing in visual studio. I renamed a TextureRect in my scene, renamed its script accordingly, and completely the broke my project.

I've searched around for hidden references to TextureRect.cs and can find no more, I've renamed the script in godot, renamed the class name in the script, and renamed it in visual studio.

Yet it still says its 'failed to build the project solution' on f5 with the error saying it can't find TextureRect.cs, still!

The inspector shows that the renamed TextureRect in my scene now points to the script with its new name. Nothing points to TextureRect according to the editor and visual studio. What am I missing?

The only thing I can think of is opening the .tscn file in a text editor and see if there is a reference to TextureRect.cs there. Another thing to check is to check that all of the scenes in the game are no longer referencing TextureRect,cs. I'd also check to make sure there isn't any scripts that extend TextureRect.cs in the project.

(Side note: Welcome to the forums!)

I found that reference in the .tscn, but it was the order I was doing everything I think? Because when I did it carefully this time, renamed the editor references first, then went to visual studio it prompted to reload the project this time and all I had to do was delete the defunk TextureRect.cs reference from the solution explorer and it worked fine.

Thanks for your help :).

3 years later