PCL Tests: DllNotFoundException: realm-wrappers
See original GitHub issueGoals
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
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:16 (4 by maintainers)
Top Results From Across the Web
realm-wrappers dll not found in test environment on win10
Goals I'm trying to test some code that uses realm. Expected Results Test executes Actual Results When i press F5 to execute console ......
Read more >Testing Realm in PCL for Xamarin
I am currently using NUnit, is it possible to run in inside Visual studio using the integrated test runner? , This is when...
Read more >System.TypeInitializationException: The type initializer for ' ...
TypeInitializationException: The type initializer for 'Realms.Realm' threw an exception. ---> System.DllNotFoundException · Ask Question. Asked ...
Read more >The Diagnosis of PCL Injury: Literature Review and ...
Several clinical tests for PCL laxity have been described over the years, with varying degrees of sensitivity and clinical applicability.
Read more >Posterior Cruciate Ligament (PCL) Injury Knee - YouTube
The posterior drawer test is commonly used to assess the integrity of the posterior cruciate ligament of the knee ( PCL ).
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I get same error. Realm 2.3.0. Both iOS and Android.
We no longer support PCLs and the last few comments are about a different issue. Closing this one.