RhinoDoc.CreateHeadless(null).Import(path) fails?

I’m attempting to load a file into a headless instance of rhino, but the import keeps failing and I don’t understand why.

Here is my code:

string localPath = ".\\open.3dm";
RhinoDoc rd = RhinoDoc.CreateHeadless(null);

 if (!rd.Import(localPath)) {
     Console.WriteLine("Import failed");
 } else {
     Console.WriteLine("Import succeeded");
 }

I made sure that open.3dm is in the same folder as my executable.

Any idea why this is failing?

I figured it out. I was using the rhino7 sdk with a rhino8 file. It would be nice if the import function would tell the user why the import was failing though…