views:

177

answers:

1

Hey all,

I am trying to use automapper to map a list of objects in a class library to a list of objects in a silverlight class library. I am getting a security exception as AutoMapper is trying to reflect over the silverlight class library.

Does anyone know of a way around this?

Thanks.

+2  A: 

I'm literally working on a SL 3.0 port right now. It should be released in about a week or so. If you can't wait, check out this branch folks have been using in the meantime: http://github.com/detroitpro/AutoMapper.Silverlight

Jimmy Bogard
Great thank, if i wanted to do the mapping in an asp.net application, how do you deal with having to reference both system.dll 2.0.0.0 and system.dll 2.0.5.0?
Blounty
I'm releasing two assemblies, an AutoMapper.dll and AutoMapper.Silverlight.dll. I had to do conditional compilation etc. to basically leave out things that SL does not support (system.data for example).
Jimmy Bogard