sirp Posted February 7, 2011 Posted February 7, 2011 Try Mono.Cecil if you need System.Reflection.Emit in Windows Phone 7As .NET compact framework never support System.Reflection.Emit,we can’t use Reflection.Emit in Windows Phone 7 development. So, itprevents us from porting the existing frameworks like Unity, Castle Dynamic Proxy,Moq and etc to Windows Phone 7 development platform. I was looking all options that helps us to use Reflection.Emit in Phone 7. The first option that I check is to port Mono code to Silverlight for Phone 7 version. The second option is to use Mono Cecilthat is using in Mono Core. And the third option is to use EmitCF but I don’t see anyupdate after beta release so I guess this project is dead already. So, I decided to givea try on Mono Cecil.Mono Cecil supports Silverlight, Compact Framework and .NET desktop version. So, it’s very easy to make Cecil work on Phone 7. All I have to do is to create a conditional called CF in csproj file and then it will work like a charm. I submitted a patch to Mono Cecil butJb Evain said that he doesn’t want to provide csproj officially so I will make the files downloadable here.http://michaelsync.net/2010/04/20/try-mono-cecil-if-you-need-system-reflection-emit-in-windows-phone-7
parag Posted May 11, 2011 Posted May 11, 2011 could you please provide how do i replace reflection.Emit code with MonoCecil, i am basically trying to use a sample source in windows phone which is using Reflection.Emit.DynamicMethod, Reflection.Emit.ILGenerator.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now