castleproject/Core — pull request #1 by k0st1x (2011-11-21 10:01:44+00:00)
Title: Castle.Core for SL4 can be referenced by .NET project in Partial Trust

As discussed in https://groups.google.com/forum/#!topic/castle-project-users/qytXBc9as6c ,
there is project, that must be tested in Partial Trust environment (using Moq library).
But "Castle.Core" for ".NET" can not be used in Partial Trust environment.
For that reason, can be used "Castle.Core" for "Silverlight 4", but with slight correction ("System.Xml" from "Silverlight 4" can not be used in ".NET" project).
The fix is to remove the use of classes from the "System.Xml" assembly for the project configuration "SL4"
by wrapping the code with condition "#if !Silverlight".