I am attempting to use Windsor 3 Beta 1 in Mono 2.6 and I am encountering a few issues. (Note that my tests all pass while running Windsor 3 Beta 1 on .Net 3.5)
Initially I tried the .Net 3.5 binaries available, upon doing so an exception was thrown while constructing a WindsorContainer (i.e. new WindsorContainer())
System.ArrayTypeMismatchException : Source array type cannot be assigned to destination array type. at (wrapper stelemref) object:stelemref (object,intptr,object) at System.Collections.Generic.Dictionary
2[System.Type,Castle.Windsor.Diagnost ics.IDiagnostic
1[System.Object]].Add (System.Type key, IDiagnostic`1 value) [0x00000] in : 0 at Castle.Windsor.Diagnostics.DefaultDiagnosticsSubSystem.AddDiagnostic[IAllCo mponentsDiagnostic](IAllComponentsDiagnostic diagnostic) [0x00000] in : 0 at Castle.Windsor.Diagnostics.Extensions.AllComponents.Init (IKernel kernel, IDiagnosticsHost diagnosticsHost) [0x00000] in :0 at Castle.Windsor.Diagnostics.DefaultDiagnosticsSubSystem.Add (IContainerDebuggerExtension item) [0x00开发者_如何学Python000] in :0 at Castle.Windsor.Diagnostics.DefaultDiagnosticsSubSystem.InitStandardExtensio ns () [0x00000] in :0 at Castle.Windsor.Diagnostics.DefaultDiagnosticsSubSystem.Init (IKernelInternal kernel) [0x00000] in :0 at Castle.MicroKernel.DefaultKernel.AddSubSystem (System.String key, ISubSystem subsystem) [0x00000] in :0 at Castle.MicroKernel.DefaultKernel.RegisterSubSystems () [0x00000] in :0 at Castle.MicroKernel.DefaultKernel..ctor (IDependencyResolver resolver, IProxyFactory proxyFactory) [0x00000] in : 0 at Castle.MicroKernel.DefaultKernel..ctor (IProxyFactory proxyFactory) [0x00000] in :0 at Castle.MicroKernel.DefaultKernel..ctor () [0x00000] in :0 at (wrapper remoting-invoke-with-check) Castle.MicroKernel.DefaultKernel:.ctor () at Castle.Windsor.WindsorContainer..ctor () [0x00000] in :0 at (wrapper remoting-invoke-with-check) Castle.Windsor.WindsorContainer:.ctor ()
After making some modifications to various files to compile Castle.Core and Castle.Windsor targeting Mono 2.6 (add MONO to several compiler directives (which may not be the right solution), I ran the tests and many failed.
I then used the Mono 2.6 binaries (yes the binaries that had many failing tests), and I received the same exception mentioned above.
Any ideas on what needs to be done to get Windsor 3 running in Mono?
精彩评论