Jump to content
View in the app

A better way to browse. Learn more.

Tuts 4 You

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[.NET] Fixed Mono.Cecil for Windows Phone 7 incl. Source

Featured Replies

Posted

Try Mono.Cecil if you need System.Reflection.Emit in

Windows Phone 7

As .NET compact framework never support System.Reflection.Emit,

we can’t use Reflection.Emit in Windows Phone 7 development. So, it

prevents 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 Cecil

that is using in Mono Core. And the third option is to use EmitCF but I don’t see any

update after beta release so I guess this project is dead already. So, I decided to give

a 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 but

Jb 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

  • 3 months later...

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.

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.