可以针对 .NET Framework Client Profile 的 IOC 容器?
在我们当前的 WPF 项目中,我们一直在使用 Ninject IOC 工具执行依赖项注入。
我们希望以 .NET Framework Client Profile 为目标,以获得更好的下载/安装体验。问题是 Ninject 似乎引用了 System.Web 等不在客户端配置文件中的库。
谁能推荐一个可以针对 .NET Framework Client Profile(3.5 或 4)的 IOC 容器?
On our current WPF project, we've been performing dependency injection using the Ninject IOC tool.
We want to target the .NET Framework Client Profile for a better download/install experience. The problem is that Ninject seems to reference libararies such as System.Web which are NOT in the Client Profile.
Can anyone recommend an IOC container that can target the .NET Framework Client Profile (3.5 or 4) ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Autofac 支持 3.5 和 4.0 客户端配置文件。
Autofac supports both 3.5 and 4.0 Client Profile.
尝试真正轻量级且简单的 Funq DI 容器。它最初是为移动应用程序块创建的,所以我相信它适合您的目的。 (或者至少是 lambda 上的 DI 容器的想法)
Try really lightweight and simple Funq DI container. It was initially created for the Mobile Application Blocks, so I believe it would be suitable for your purposes. (or at least idea of DI container on lambdas)