question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PCL Tests: DllNotFoundException: realm-wrappers

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:16 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
thinkaboutcsharpcommented, Sep 9, 2018

I get same error. Realm 2.3.0. Both iOS and Android.

0reactions
nirinchevcommented, Jul 10, 2021

We no longer support PCLs and the last few comments are about a different issue. Closing this one.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found