I've got a pretty basic question about how to start using Castle Windsor. I've read up on IOC/DI and would like to try Castle Windsor in an existing solution. I typically like to put any external assemblies in a Lib folder within the solution's folder tree so that the references are relative (I believe this is best practice).
关于如何开始使用Castle Windsor,我有一个非常基本的问题。我已阅读IOC / DI,并希望在现有解决方案中尝试Castle Windsor。我通常喜欢将任何外部程序集放在解决方案的文件夹树中的Lib文件夹中,以便引用是相对的(我相信这是最佳实践)。
Which assemblies from the Castle\Bin... folder do I need to copy to my Lib folder? And do I need to add an explicit reference to each assembly or only some of them?
我需要将Castle \ Bin ...文件夹中的哪些程序集复制到我的Lib文件夹中?我是否需要为每个程序集添加显式引用或仅添加其中一些?
There are 30 assemblies in the C:\dev\oss\Castle\Bin\net-2.0 folder and 18 assemblies in the C:\dev\oss\Castle\Bin\Dependencies folder.
C:\ dev \ oss \ Castle \ Bin \ net-2.0文件夹中有30个程序集,C:\ dev \ oss \ Castle \ Bin \ Dependencies文件夹中有18个程序集。
2 个解决方案
#1
I reckon this should be enough to get you started.
我认为这应该足以让你开始。
- Castle.Core
- Castle.MicroKernel
- Castle.Windsor
and if you want to use log4net for logging then....
如果你想使用log4net进行日志记录....
- log4net
- Castle.Facilities.Logging
- Castle.Services.Logging.Log4netIntegration
#2
Only Castle.Core, Castle.MicroKernel and Castle.Windsor are required to be able to use Windsor.
只有Castle.Core,Castle.MicroKernel和Castle.Windsor才能使用Windsor。
#1
I reckon this should be enough to get you started.
我认为这应该足以让你开始。
- Castle.Core
- Castle.MicroKernel
- Castle.Windsor
and if you want to use log4net for logging then....
如果你想使用log4net进行日志记录....
- log4net
- Castle.Facilities.Logging
- Castle.Services.Logging.Log4netIntegration
#2
Only Castle.Core, Castle.MicroKernel and Castle.Windsor are required to be able to use Windsor.
只有Castle.Core,Castle.MicroKernel和Castle.Windsor才能使用Windsor。