I downloaded recent sources of Castle.ActiveRecord from github. I succesfully compiled it against vs2010 (targetting .Net 4.0)
I added reference to Castle.Core, Castle.ActiveRecord.dll assembly and using Castle.ActiveRecord; to my simple project (Console app, .Net 4.0)
And i got the following compile error
“The type or namespace name ‘ActiveRecord’ does not exist in the namespace ‘Castle’ (are you missing an assembly reference?)”
But this namespace exists in this assembly (I checked via object browser)
What is the problem?
Castle.Core and Castle.ActiveRecord both have a dependency on System.Web. System.Web does not exist in the .NET Client Profile (either 3.5 or 4). Look further down in your compile errors/warnings and you’ll see:
Go to Project Properties… Application… Target framework… and switch it to “.NET Framework 4” and you should be good.