GuillaumeSalles / redux.NET

Redux.NET is a predictable state container for .NET apps. Inspired by https://github.com/reactjs/redux.
712 stars 86 forks source link

Could not link assemblies #73

Closed ahmad2smile closed 6 years ago

ahmad2smile commented 6 years ago

I've added the Native Xamarin MacOS project in my Xamarin Forms project which was setup on VS for Windows with .Net Standard 2.0 and linked it. It works fine on other platforms. I'm getting following error:

error MM2001: Could not link assemblies. Reason: Error processing method: 'System.Void Redux.Store`1::.ctor(Redux.Reducer`1<TState>,TState,Redux.Middleware`1<TState>[])' in assembly: 'Redux.dll'

While in Debug I get exception:

Xamarin the type initializer for threw an exception
ahmad2smile commented 6 years ago

Just fixed it. It wasn't related to Redux.NET just my bad. For future ref you need to add System.Reactive.Core and System.Reactive.Linq (depending upon your use) in Mac project manually in addition to System.Reactive.

The error of missing libraries isn't clear on VS for Mac. I added WPF app which was much clearer regarding these issues.