Realm-dotnet: Update to Fody 6.0.0

Created on 26 Aug 2019  路  15Comments  路  Source: realm/realm-dotnet




Goals

Update Fody package to latest version 6.0.0

Expected Results

Realm Fody dependency is updated to latest version 6.0.0

Actual Results

Current supported Fody version 4.0.2
Other libraries that have upgraded to latest Fody, resulting in issue with realm library.

Steps to Reproduce

NA

Code Sample

NA




Version of Realm and Tooling

  • Client SDK Version: realm-dotnet 4.1.0 for Xamarin.iOS and Xamarin.Android
  • Client OS & Version: iOS - 12.4 and Android 9 Pie
O-Community T-Enhancement

All 15 comments

I support this. Realm is now no longer compatible with latest version of some packages such ReactiveUI, which now has a dependency on Fody >= 6.0

Every time that I update Fody in VS for Mac, I should to reinstall Realm again, always happen

I caught error "Fody: Failed to execute weaver". Is this caused by this issue?

Fody: Failed to execute weaver C:\Users\SETUP.nuget\packagesrealm.fody\4.1.0\build..\weaver\net46\Realm.Fody.dll due to a MissingMemberException. Message: 銉°偨銉冦儔銇岃銇ゃ亱銈娿伨銇涖倱: 'Mono.Collections.Generic.Collection`1 Mono.Cecil.GenericParameter.get_Constraints()'. This is likely due to the weaver referencing an old version (4) of Fody.

It is, you need to downgrade your Fody version to 5.x.

We can add PropertyChanged.Fody (3.1.x) to the list of nuget packages that are now incompatible with Realm due to this.

This is a frequent issue. Why can't realm push a patch with every update in it's dependencies? Is this a big deal

We have more important issues in the backlog that we'd like to address first. We'll get to upgrading it eventually.

I am getting same error please check
Severity Code Description Project File Line Suppression State Error Fody: Failed to execute weaver C:\Users\...\.nuget\packages\realm.fody\4.1.0\build\..\weaver\net46\Realm.Fody.dll due to a MissingMemberException. Message: Method not found: 'Mono.Collections.Generic.Collection1 Mono.Cecil.GenericParameter.get_Constraints()'.. This is likely due to the weaver referencing an old version (4) of Fody. 1
`

Now the problem fody is comes with Realm itself so I can't downgrade only fody it's dependency of Realm.

Please help me to fix this.
Note : I can downgrade Realm itself but this is not right solution for me I have to do many thing in my code there are certain things I have updated with this

Why can't you downgrade Fody?

In my case, I got PropertyChanged.Fody from nuget, its Fody was ver.6, so they were conflicted.
I want to use Realm database for xamarin, I gave up PropertyChanged.Fody.

@thinkaboutcsharp Until this ticket is fixed, instead of installing the last version of PropertyChanged.Fody (3.1.1) install de nugget package for version 3.0.1 ( https://www.nuget.org/packages/PropertyChanged.Fody/3.0.1 ), which is compatible with the current version of Realm.

Why can't you downgrade Fody?

Fody is inside the Realm please check screen short
image

please check demo application : https://github.com/jitendrajadav/XamarinRealm

@jitendrajadav you're referencing [email protected] which is why the Fody dependency is resolved as 6.0.0. As @salgiza mentioned, you can downgrade to [email protected] to be compatible with Fody 4/5.x.

@jitendrajadav you're referencing [email protected] which is why the Fody dependency is resolved as 6.0.0. As @salgiza mentioned, you can downgrade to [email protected] to be compatible with Fody 4/5.x.

@nirinchev Thank you for updating me I forgot to address this issue now problem is resolved by downgrading [email protected]

really appreciate

Hey - looks like you forgot to add a T-* label - could you please add one (if you have access to add labels)?

Was this page helpful?
0 / 5 - 0 ratings