i can't seem to find a dependency injection framework for windows 8 metro apps.
Is there a framework for win8 metro apps?
Ninject is not yet support for win8 metro. So does anybody have a suggestion? (Castle, Spring, ...)
Here is the source for Ninject WinRT: https://github.com/remogloor/ninject It just not yet released.
You could try Unity 3.0 for .NET4.5 Preview.
I've been using the Beta version of Autofac Portable Library (which is supported in Metro apps) and it is working great so far.
The Catel MVVM toolkit also contains a DI-container, it's metro version will be released this week (according to one of their developers): http://catel.codeplex.com
来源:https://stackoverflow.com/questions/10969417/dependency-injection-framework-for-windows-8-metro-apps