clairernovotny / ninject

the ninja of .net dependency injectors
http://ninject.org/
Other
26 stars 5 forks source link

Assembly scanning fails on iOS Unified #4

Open clairernovotny opened 9 years ago

clairernovotny commented 9 years ago

Seems to be a null coming from one of the base path's in the ModuleLoader NormalizePaths.

Workaround for now:

Use one of the StandardKernel ctor's which takes a NinjectSettings and set the LoadExtensions property to false. That should bypass the code that’s throwing.

theladyjaye commented 9 years ago

I'm seeing the same thing. It's in a WatchExtension though for iOS. The actual iOS app works just fine. Reference to the issue here:

http://forums.xamarin.com/discussion/36494/ninject-portable-watchkit-standard-kernal-error#latest

I can also confirm that the workaround works in this case:

var settings = new NinjectSettings();
settings.LoadExtensions = false;