问题
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, ...)
回答1:
Here is the source for Ninject WinRT: https://github.com/remogloor/ninject It just not yet released.
回答2:
You could try Unity 3.0 for .NET4.5 Preview.
回答3:
I've been using the Beta version of Autofac Portable Library (which is supported in Metro apps) and it is working great so far.
回答4:
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