Hi Jb, I have to change the followings in order to compile Cecil on WP7.
*1. ModuleDefinition.cs* I added && !SILVERLIGHT before this method *TypeReference Import (Type type) *. *2. MetadataImporter* I added this line #if !CF && !SILVERLIGHT after constructor. Please let me know if I shouldn't be doing this. Thanks. I will try to add unit tests as well but I need to use Jeff Wilcox's unit test framework http://jeffatmix.com/ since this is the only one that is available for Phone 7 at the time of writing.. I will get back to you.. Thanks and Best Regards, Michael Sync Don't go the way life takes you. Take life the way you go http://michaelsync.net On Sat, Apr 17, 2010 at 12:37 AM, Michael Sync <mchls...@gmail.com> wrote: > Hi Jb, > > This is Michael again. SL for WP7 doesn't support TypedReference struct so > I should just remove it, right? :) > > > Thanks and Best Regards, > Michael Sync > > Don't go the way life takes you. > Take life the way you go > > http://michaelsync.net > > > On Sat, Apr 17, 2010 at 12:32 AM, Michael Sync <mchls...@gmail.com> wrote: > >> Hi Jb, >> >> I'm just trying to recompile with Silverlight for Phone. >> >> I'm getting this error.. Let's see whether I can fix it or not. >> >> Error 2 The type or namespace name 'TypedReference' could not be found >> (are you missing a using directive or an assembly reference?) C:\Michael >> Sync\Phone >> 7\jbevain-cecil-81d3c46\jbevain-cecil-81d3c46\Mono.Cecil-Phone\Mono.Cecil\Import.cs >> 62 14 Mono.Cecil-Phone >> >> >> Thanks and Best Regards, >> Michael Sync >> >> Don't go the way life takes you. >> Take life the way you go >> >> http://michaelsync.net >> >> >> On Sat, Apr 17, 2010 at 12:16 AM, Michael Sync <mchls...@gmail.com>wrote: >> >>> >>> Hi Kosenko, >>> >>> >>I don't not understand what you mean. Silverlight WP7 is the >>> same Silverlight. >>> >>> Did you manage to look at Silverlight WP7? At least, supported API list >>> from MSDN... >>> >>> I think that you are assuming that Silverlight and Silverlight for WP7 >>> are the same.. But it's not. >>> >>> >>> >>> Thanks and Best Regards, >>> Michael Sync >>> >>> Don't go the way life takes you. >>> Take life the way you go >>> >>> http://michaelsync.net >>> >>> >>> On Fri, Apr 16, 2010 at 7:16 PM, Kosenko Max <kosenko....@vyzo.com>wrote: >>> >>>> I don't not understand what you mean. Silverlight WP7 is the same >>>> Silverlight. Same code. There are VERY small set of differences >>>> between them. >>>> You're still talking about 0.6 and not 0.9 Cecil. 0.6 is NOT supported >>>> on Silverlight. >>>> >>>> On 16 апр, 04:39, Michael Sync <mchls...@gmail.com> wrote: >>>> > Hi Kosenko, >>>> > >>>> > SL for WP7 is very new version and it's totally different from SL. >>>> > >>>> > I'm looking for something that I can use instead of Reflection.Emit on >>>> Phone >>>> > 7. So, any version (0.6 or 0.9) will do. >>>> > >>>> > Thanks and Best Regards, >>>> > Michael Sync >>>> > >>>> > Don't go the way life takes you. >>>> > Take life the way you go >>>> > >>>> > http://michaelsync.net >>>> > >>>> > On Fri, Apr 16, 2010 at 5:42 AM, Kosenko Max <kosenko....@vyzo.com> >>>> wrote: >>>> > > On 15 апр, 20:59, Michael Sync <mchls...@gmail.com> wrote: >>>> > > > I'm trying to recompile cecil-0.6 with Silverlight for WP7 but I'm >>>> having >>>> > > a lot of problems with it. :) >>>> > >>>> > > Why are you trying to do that? 0.9 is new and targets SL directly. >>>> > > We've done 0.6 port internally, but that was a hack. >>>> > > Why not 0.9? >>>> > >>>> > > -- >>>> > > -- >>>> > > mono-cecil >>>> > >>>> > > To unsubscribe, reply using "remove me" as the subject. >>>> > >>>> > -- >>>> > -- >>>> > mono-cecil >>>> >>>> -- >>>> -- >>>> mono-cecil >>> >>> >>> >> > -- -- mono-cecil