Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to Fody 6.0.0 #1899

Closed
hbhadauria opened this issue Aug 26, 2019 · 15 comments · Fixed by #1908
Closed

Update to Fody 6.0.0 #1899

hbhadauria opened this issue Aug 26, 2019 · 15 comments · Fixed by #1908

Comments

@hbhadauria
Copy link

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
@ryan-payet-wcc
Copy link

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

@aerazo
Copy link

aerazo commented Sep 11, 2019

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

@thinkaboutcsharp
Copy link

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

Fody: Failed to execute weaver C:\Users\SETUP.nuget\packages\realm.fody\4.1.0\build..\weaver\net46\Realm.Fody.dll due to a MissingMemberException. Message: メソッドが見つかりません: 'Mono.Collections.Generic.Collection`1<Mono.Cecil.TypeReference> Mono.Cecil.GenericParameter.get_Constraints()'. This is likely due to the weaver referencing an old version (4) of Fody.

@nirinchev
Copy link
Member

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

@salgiza
Copy link

salgiza commented Oct 2, 2019

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

@HobDev
Copy link

HobDev commented Oct 6, 2019

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

@nirinchev
Copy link
Member

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

@jitendrajadav
Copy link

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.TypeReference> 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

@nirinchev
Copy link
Member

Why can't you downgrade Fody?

@thinkaboutcsharp
Copy link

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.

@salgiza
Copy link

salgiza commented Oct 7, 2019

@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.

@jitendrajadav
Copy link

jitendrajadav commented Oct 7, 2019

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

@nirinchev
Copy link
Member

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

@jitendrajadav
Copy link

@jitendrajadav you're referencing PropertyChanged.Fody@3.1.3 which is why the Fody dependency is resolved as 6.0.0. As @salgiza mentioned, you can downgrade to PropertyChanged.Fody@3.0.1 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 PropertyChanged.Fody@3.0.1

really appreciate

@realm-probot
Copy link

realm-probot bot commented Oct 7, 2019

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

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants