Unity Convert - Can't get C# files recognized

Godot Version

4.2.1

Question

I want to migrate my game from Unity to Godot, but am having trouble getting 4.2.1.stable.mono to recognize any c# files, even in a Hello World type program. A few hours of google searching and youtube vidoes, I really can’t understand what I need to do.

To recreate, I create a new project, create a new Sprite2D node (or any object), create a new templated script and build the scene

My Error: E 0:00:00:0699 can_instantiate: Cannot instance script because the associated class could not be found. Script: ‘res://Sprite2D.cs’. Make sure the script exists and contains a class definition with a name that matches the filename of the script exactly (it’s case-sensitive).

<C++ Error> Method/function failed. Returning: false

<C++ Source> modules/mono/csharp_script.cpp:2423 @ can_instantiate()

What I’ve tried:

  • Made sure the Script exists and contains the EXACT class definition
  • Made sure I have the right .Net Libraries for Godot
  • Several different projects with varying node types trying to script it out
  • Restarted/reinstalled/installed older godot versions
  • Messed around with the Editor and Project Setting options
  • Ensured I downloaded the .NET version of Godot - /4.2.1-stable/Godot_v4.2.1-stable_mono_win64.zip

Everything works fine when scripting in Godot’s language

Any help would be greatly appreciated, I’m at a loss to get started, and was really excited to see how much the engine has streamlined things