How can I use just the DictionaryAdapter from Castle Core 2.5.2?
I wa开发者_JS百科nt to use just the DictionaryAdapter from Castle Core 2.5.2 in an old app that already uses Castle Core 1.2. Is there a way to keep apart the common parts of these libraries, except compiling just DictionaryAdapter from source?
I'd try first upgrading Castle.Core to 2.5.2, but your problem is that this will drag other dependencies. You can try compiling DictionaryAdapter from source, it's fairly independent from the rest of Castle.Core so it shouldn't be much trouble.
Since I have just the Express version of VS2010, I was tempted to use ilmerge to expose just the DictionaryAdapter
namespace, but one thing led to another, and I took another route, since Castle.Core.Smtp
is present in both versions: I started from Castle.Core.dll
2.5.2.0 and simply renamed the first part of the namespaces from Castle
to Castle252
, so I can use it along Castle.Core
1.2.0.0 without any conflict:
How to Change Namespace of .NET Assembly?
精彩评论