realm-dotnet: No properties exception (has linker stripped it?)

Steps & Code to Reproduce

Describe your current debugging efforts.

I know this is known exception but I can’t find solution.

  1. I have been using realm for long time. It works great.
  2. I have a plugin that I have been using from nuget Package. It’s "Ble plugin " https://github.com/xabre/xamarin-bluetooth-le/
  3. I removed ble nuget package because I want to download from github and use it.
  4. removed package and added project from downloaded source code.
  5. problem here. “No properties in Baby, has linker stripped it? See https://realm.io/docs/xamarin/latest/#linker-stripped-schema” when I meet Realm.GetInstance().

I tried using config like

        var config = new RealmConfiguration("myconf");
        config.ObjectClasses = new Type[] { typeof(Baby), typeof(User), typeof(Noti) };
        Realm.GetInstance(config).Write(() =>

but it’s not working. same result.

How to solve this problem? Of course I read your guide for this, but I can’t understand and can not solve my problem.

Version of Realm and tooling

Realm version(s): ? 0.77.2

Xamarin/Visual Studio version: ? 6.0

Which operating system version and device: ? iOS / Android both

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 21 (7 by maintainers)

Most upvoted comments

I got the same issue and resolved by adding <RealmWeaver/> into FodyWeaver.xml

I really appreciate your help Andy.