C# Local Realm File Returning Null

.NET SDK returns null when getting local Realm instance.

I have a very basic piece of code that reads a local file but it is returning null when I check the breakpoints. When I open the Realm file in Realm Studio, it is clearly not null.

I have the latest version of Realm and Realm.Fody and I have FodyWeavers.xml in my directory


using Realms;

string realmPath = @"C:\foobar\test.realm";
var config = new RealmConfiguration(realmPath);
config.SchemaVersion = 4;
var realm = Realm.GetInstance(config); // store instance