Thanks Megalomaniak, that is good to know.
I have found a workaround to the problem. Putting the OtherClass into the Main.cs file works:
using Godot;
using System;
public class Main : Node
{
public override void _Ready()
{
GD.Print("Hello from C#");
OtherClass ot = new OtherClass();
}
}
public class OtherClass
{
public OtherClass()
{
GD.Print("Hello from OtherClass");
}
}
This is not ideal but it'll do for now until I can find how to reference a class from another file.