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.

Xamarin Forms .NET Standard 2.0 + Realm 2.1 Problem

See original GitHub issue

Goals

Do Xamarin Forms work with Realm together again, as old version. (Xamarin.Forms PCL + Realm)

Expected Results

Realm installed and configured automaticaly in project Xamarin Forms(2.5) - .NET Standard 2.0. It looks like Realm does not recognize Xamarin-type projects.

Actual Results

Project Xamarin Forms stopped run when installed Realm even when add manually FodyWeavers.xml. The project show need lib “System.Runtime.CompilerServices.Unsafe 4.4.0”, but i added through nuget. Project install on device, but not open(close immediately).

Steps to Reproduce

VS2017 - 15.5: 1 - Create Xamarin Forms .NET Standard. 2 - In Nuget add Realm (can add Realm.Database e DataBinding). 3 - Create manually FodyWeavers.xml in all project(Droid, iOS and UWP) with content:

<?xml version="1.0" encoding="utf-8" ?> <Weavers> <RealmWeaver /> </Weavers>

4 - Create simple class model inheriting RealmObject. 4 - Run App. Observation: Realm work with UWP (without Xamarin).

Code Sample

Version of Realm and Tooling

  • Realm Object Server Version: No
  • Flavor:
    • Developer
    • Professional
    • Enterprise
  • Server OS & Version: ? (e.g. CentOS 6)
  • Client SDK Version: Visual Studio 2017 - 15.5.2.
  • Client OS & Version: Windows 10 - Pro - 1709 - Build: 16299.125 (updated)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:33 (11 by maintainers)

github_iconTop GitHub Comments

5reactions
listepo-alterpostcommented, Jan 2, 2018

@nirinchev is there any news when this bug fix will be in the next release?

0reactions
vidiepcommented, Apr 25, 2018

I can’t connect xamrin froms to realm object server

Read more comments on GitHub >

github_iconTop Results From Across the Web

Missing netstandard 2.0 reference in Xamarin.Forms ...
I'm getting over 1500 errors like this, when I try to build an updated Xamarin.Forms project with Jenkins : App.xaml.cs(24,32): error CS0012: ...
Read more >
Azure Devops Xamarin Android .netstandard 2.1 not in ...
We've just started getting this error today and builds that ran fine yesterday not longer work with no changes to the project files...
Read more >
Missing netstandard 2.0 assembly error on blank Xamarin. ...
I'm getting an error when creating a blank Xamarin.Forms project in VS where the netstandard assembly isn't being referenced, and cannot for the...
Read more >
NET Standard 2.1
NET Core will soon run all three UI technologies of modern Windows UWP, WinForms and WPF (.NET Core 3). - The Windows Compatability...
Read more >
Metadata file '..\bin\Debug\netstandard2.1\App.dll' could ...
I have a legacy Xamarin Forms project, started almost 4 years ago in XF 2.5. ... So I had to migrate it first...
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