c# – Compact Framework 2.0上的控制反转

我一直在“谷歌搜索”关于Compact Framework的控制反转,但大多数解决方案都适用于3.5版本.

总结:我需要在Compact Framework 2.0上进行轻量级,简单的控制容器反转.

先感谢您.

最佳答案 看起来,大多数IoC容器的当前版本不再支持旧版本的.net框架(和Compact Framework).

您可能会使用旧版本.
例如,Ninject download page表示Ninject 1.5适用于CF 2.0:

Older Version (version 1.5)

Support for versions of the .NET Framework prior to 3.5 was
discontinued in Ninject 2.0. If you need backwards compatibility, you
can still use 07001. However, this version is only receiving
critical bug fixes, and all new development is being done on the
Ninject 2.0 codebase. Please only use this if you need to!

Binaries:

  • .NET Framework 3.5
  • .NET Framework 2.0
  • .NET Compact Framework 3.5
  • 07002
  • Silverlight 2.0
  • Silverlight 3.0
  • Mono 2.0
点赞