Pulling CommonServiceLocator.WindsorAdaptor into SharpArch code

22 views
Skip to first unread message

Seif Attar

unread,
Feb 7, 2012, 7:32:31 PM2/7/12
to sharp-arc...@googlegroups.com
Hello chaps,

I was updating the contrib project to the latest version, and have hit
a problem with postsharp and assembly binding redirects.

The problem is that the CommonServiceLocator.WindsorAdapter package
has NOT been updated for the latest CastleWindsor, for Sharp
Architecture this has worked fine because a simple assembly binding
redirect in the app.config does the job.

However, in order for Postsharp to do its magic we would need to add
the redirect to the machine policy (dont like the solution
personally), the WindsorAdapter is just 1 class that implements some
methods of CommonServiceLocators ServiceLocatorImplBase, and since the
CommonServiceLocator.WIndsorAdapter dll floating around was written by
Ayende a couple of years back, and seem to have been updated by random
people at different points, I am thinking the best option is to pull
into SharpArch somewhere (perhaps the same assembly that will be
created from splitting Mvc.Castle into a specific Castle assembly?)
not sure where to put it yet.

Another options would be to for someone to take ownership of
CommonServiceLocator.WindsorAdaptor
(http://commonservicelocator.codeplex.com/wikipage?title=Castle%20Windsor%20Adapter)
and maintain updated version of it in nuget, any1 feel up to it? I had
asked Ayende about it a couple of years back, and never recieved a
reply and the download in that link does not have any licence
information. the uploader of the current package on NuGet is not
known, so I am sure we can contact the nuget guys and get rights to
manage that package. any1 feel like taking this on?

For now, I will postpone the addition of Postsharp to contrib until we
find a work around for this! :S

What are your thoughts?

Reply all
Reply to author
Forward
0 new messages