solvable; So, with the base project, there were three consecutive errors in the following order:
System.MissingMethodException: Default constructor not found for type Cirrious.CrossCore.IoC.MvxPropertyInjector
can be resolved either using -linkskip = Cirrious.Core (ugly), or by including in LinkerPleaseInclude.cs
public void Include(MvxPropertyInjector injector){
injector = new MvxPropertyInjector ();
}
The following error:
Cirrious.CrossCore.Exceptions.MvxException: Failed to construct and initialize ViewModel for type {0} from locator MvxDefaultViewModelLocator - check MvxTrace for more information
It's complicated; A simple fix is, of course, to make the link --linkskip = portableLibrary or create an instance of ViewModel somewhere (possibly in LinkerPleaseInclude.cs); the problem with the second approach, at least in my case, most of my virtual machine does not have a constructor with a lower value, and obviously, using IOC in this case would not help.
Final error:
System.ArgumentNullException: missing source event info in MvxWeakEventSubscription
Parameter name: sourceEventInfo
--linkskip = System (), LinkerPleaseInclude.cs
public void Include(INotifyPropertyChanged changed)
{
changed.PropertyChanged += (sender, e) => {
var test = e.PropertyName;
};
}
LinkAllAssemblies, LLVM SGen.
, , .