realm-dotnet: PCL Tests: DllNotFoundException: realm-wrappers
Goals
To run PCL tests that uses Realm.
Expected Results
Tests must be performed without any Realm initialization exceptions.
Actual Results
<System.TypeInitializationException: The type initializer for 'Realms.SharedRealmHandle' threw an exception. ---> System.DllNotFoundException: realm-wrappers
Steps to Reproduce
- Add PCL project with some tests using
Realm.GetInstance()
. - Add NUnitLite and Realm packages into PCL project.
- Add Console or Xamarin.iOS project.
- Add NUnitLite and Realm packages into Console or Xamarin.iOS project.
- Init NUnitLite to use PCL assembly.
- Run Console or Xamarin.iOS project.
Code Sample
Console application:
public static int Main(string[] args)
{
return new AutoRun(typeof(TestsPCLClass).GetTypeInfo().Assembly).Execute(args);
}
Version of Realm and Tooling
- Realm Version: 2.1.0
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 1
- Comments: 16 (4 by maintainers)
I get same error. Realm 2.3.0. Both iOS and Android.