question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Xamarin Forms 4 Compatibility

See original GitHub issue

I am wondering if this library will be compatible with XF 4 with Shell experience

var welcomePage = FreshPageModelResolver.ResolvePageModel<WelcomePageModel>();

this error fired when I tried resolve viewModel

Note I change ContentPage to Shell

Resolve failed: WelcomePage - Reason: Specified cast is not valid. (FreshTinyIoC.TinyIoCResolutionException)
  at FreshTinyIoC.FreshTinyIoCContainer.ConstructType (System.Type requestedType, System.Type implementationType, System.Reflection.ConstructorInfo constructor, FreshTinyIoC.NamedParameterOverloads parameters, FreshTinyIoC.ResolveOptions options) [0x0015f] in <518460ffbfc5451e9dec2c932b3d8010>:0 
  at FreshTinyIoC.FreshTinyIoCContainer.ConstructType (System.Type requestedType, System.Type implementationType, FreshTinyIoC.NamedParameterOverloads parameters, FreshTinyIoC.ResolveOptions options) [0x00000] in <518460ffbfc5451e9dec2c932b3d8010>:0 
  at FreshTinyIoC.FreshTinyIoCContainer.ResolveInternal (FreshTinyIoC.FreshTinyIoCContainer+TypeRegistration registration, FreshTinyIoC.NamedParameterOverloads parameters, FreshTinyIoC.ResolveOptions options) [0x001ba] in <518460ffbfc5451e9dec2c932b3d8010>:0 
  at FreshTinyIoC.FreshTinyIoCContainer.Resolve (System.Type resolveType) [0x00011] in <518460ffbfc5451e9dec2c932b3d8010>:0 
  at FreshMvvm.FreshTinyIOCBuiltIn.Resolve (System.Type resolveType) [0x00000] in /Users/michaelridland/Projects/FreshMvvm/src/FreshMvvm/FreshTinyIOCBuiltIn.cs:48 
  at FreshMvvm.FreshPageModelResolver.ResolvePageModel (System.Type type, System.Object data, FreshMvvm.FreshBasePageModel pageModel) [0x00027] in /Users/michaelridland/Projects/FreshMvvm/src/FreshMvvm/FreshPageModelResolver.cs:41 
  at FreshMvvm.FreshPageModelResolver.ResolvePageModel[T] (System.Object data, T pageModel) [0x0000b] in /Users/michaelridland/Projects/FreshMvvm/src/FreshMvvm/FreshPageModelResolver.cs:25 
  at FreshMvvm.FreshPageModelResolver.ResolvePageModel[T] (System.Object initData) [0x0000b] in /Users/michaelridland/Projects/FreshMvvm/src/FreshMvvm/FreshPageModelResolver.cs:19 
  at FreshMvvm.FreshPageModelResolver.ResolvePageModel[T] () [0x00000] in /Users/michaelridland/Projects/FreshMvvm/src/FreshMvvm/FreshPageModelResolver.cs:12 
  at AgentWay.App.RegisterFirstPage () [0x00001] in /Users/mina/AgentWay.Mobile/AgentWay/App.xaml.cs:47 
  at AgentWay.App..ctor () [0x00016] in /Users/mina/AgentWay.Mobile/AgentWay/App.xaml.cs:32 
  at AgentWay.iOS.AppDelegate.FinishedLaunching (UIKit.UIApplication app, Foundation.NSDictionary options) [0x000fd] in /Users/mina/AgentWay.Mobile/AgentWay.iOS/AppDelegate.cs:80 
  at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)
  at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.2.1.12/src/Xamarin.iOS/UIKit/UIApplication.cs:79 
  at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0002c] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.2.1.12/src/Xamarin.iOS/UIKit/UIApplication.cs:63 
  at AgentWay.iOS.Application.Main (System.String[] args) [0x00001] in /Users/mina/AgentWay.Mobile/AgentWay.iOS/Main.cs:17 

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:3
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

7reactions
rid00zcommented, Mar 21, 2019

@minaairsupport Thanks for the input, we will be working with the XF to ensure we support XF 4.0 and shell when it’s released.

0reactions
Geronatsioscommented, Nov 7, 2021

any news to support Shell mvvm ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

System Requirements - Xamarin
Xamarin.Mac 4.8 only supports macOS 10.9 (Mavericks) or higher. Previous versions of Xamarin.Mac supported macOS 10.7 or higher, but these older ...
Read more >
Compatibility for Xamarin
Mono 5.4 and newer; Xamarin.Android 8.0 and newer; Xamarin.Mac 3.8 and newer; Xamarin.iOS 10.14 and newer; Universal Windows Platform 10.0.16299 and newer.
Read more >
Which platforms does Xamarin support?
Xamarin does not directly support Windows Phone apps. However, because you can write iOS and Android apps in C#, and C# is the...
Read more >
Microsoft Releases .NET MAUI Compatibility Packages for ...
These packages are nearly identical to Xamarin Community Toolkit from a feature perspective, but the main difference is the dependency on .NET ...
Read more >
Xamarin iOS/Android compatibility - Plugins & Platform
Hi all, is xamarin ios/android supported in some way? ... not sure how that is working if you are building apps for iOS...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found