Search code examples
xamarin.ios.net-6.0reactiveuivisual-studio-mac

ReactiveUI class and interface disappeared after upgrading


I'm migrating a Xamarin.iOS project to .Net6. I also upgraded ReactiveUI.Fody Nuget package from 9.8.1 to 19.5.1. The class ReactiveViewController and interface IActivatable that I was using before now throwing CS0246 error.

CS0246: The type or namespace name 'IActivatable' could not be found (are you missing a using directive or an assembly reference?)

I checked Assembly browser and they weren't there anymore. However I checked ReactiveUI documentation they are not deleted or changed. What am I doing wrong?


Solution

  • The problem was that ReactiveUI 19.5.1 does not support net6-ios. Install ReactiveUI 19.4.1 and the references worked as expected. Note that IActivatable is now IActivatableView as mentioned in other answer.