I'm having some trouble building from the trunk and would really appreciate some help. My goal is to get ActiveRecord working in a Medium Trust environment but seem to be having a whole slew of problems. I'd also like to help out if possible with improving the build docs and would appreciate some guidance in getting builds working so that I can contribute back to the project.
Here's what I've done so far to just get a build working (at the moment, ignore that I'm chasing the medium trust issue, I just wanted to get a build working first) 1. Pulled down trunk from https://svn.castleproject.org/svn/castle/trunk/ 2. executed "build" with no arguments - build failed on Castle.Services.Transaction.build with the error "The type or namespace name 'Core' does not exist in the namespace 'Castle' 3. took a look in the default.build in the root of trunk because it doesn't appear to be building Castle.Core. The line <include name="Core/core.build" /> references a non-existent build file 4. Created Core/core.build with <include name="Castle.Core/ Castle.Core.build" /> 5. ran "build" again - build failed on Castle.Components.Validator with the error "Warning as Error: 'Castle.Components.Validator.ValidateCreditCardAttribute' does not need a CLSCompliantAttribute because the assembly does not have a CLSCompliant attribute" 6. set build.warnaserrors to false in the common.xml in the root of the trunk. On a side note, adding [assembly: CLSCompliant(true)] within any of the classes within Castle.Components.Validator will also fix this issue but seems hacky... my goal is just to get a build succeeding at this moment 7. received more build failures so I commented out Synchronize/ Synchronize.build and wcf/default.build in the facilities.build file since they don't appear to be used by the components needed for ActiveRecord 8. finally the build succeeded and everything appears to work in my current project in Full trust. It appears that there is at least one build file missing from source control and there are some other issues in Facilities but I am trying to build off the trunk so those can be expected. As far as the Medium Trust issue that I'm experiencing, now that I've been able to successfully build the assemblies, I need to get medium trust working... 1. executed: build -D:assembly.allow-partially-trusted-callers=true - build failed on Castle.Windsor.Tests.dll InversionOfControl \Castle.Windsor.Tests \Configuration2\ConfigurationForwardedTypesTestCase.cs The type or namespace name 'Tests' does not exist in the namespace Castle.Microkernel 2. decided to build without running tests, not ideal but just trying to get things compiling... build -D:assembly.allow-partially-trusted- callers=true -D:common.testrunner.enabled=false 3. the build succeeded, I referenced the appropriate assemblies and am now getting an error when I call ActiveRecordStarter.Initialize - [SecurityException: That assembly does not allow partially trusted callers.] Castle.ActiveRecord.Framework.Internal.ActiveRecordModelBuilder..cctor() +0 At this point, I'm at a complete loss as to where to go from here. All of my assemblies have been marked with [assembly: AllowPartiallyTrustedCallers()], I've verified that the generated AssemblyInfo.cs files in Castle.ActiveRecord, Castle.Core, Castle.DynamicProxy2, and Castle.Components.Validator have been marked for APTC. Please let me know what additional information you need from me to help with solving this problem. Thanks in advance for your help, Mark PS. I'll be happy to do what I can to contribute back to the community, especially with regards to the documentation and medium trust related issues. I'm sure that I'm not the only person with running in medium trust as a goal -- You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en.
