Red Gate forums :: View topic - Windows Phone Silverlight
Return to RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SmartAssembly 5
SmartAssembly 5 forum

Windows Phone Silverlight

Search in SmartAssembly 5 forum
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Jump to:  
Author Message

Joined: 03 Aug 2010
Posts: 2

PostPosted: Tue Aug 03, 2010 3:01 pm    Post subject: Windows Phone Silverlight Reply with quote

I know Windows Phone Silverlight is still in beta, but I have the following issue tying to use SA with it.

First I created a brand new Windows Phone Class Library with no classes. Then created a brand new SA project without changing any settings, and everything works correctly.

I then add a class as follows:

    public class Class1
        static void Test()

Using the same SA project I now get the error:

SmartAssembly has encountered an invalid token in:

I guess that this is due to the oddity with the way Silverlight locates its side-by-side assemblies, this was using SA 5.2 (build 92)

Also in another Windows Phone project the Control Flow Obfuscation does not work on Strongest but does with Strictly Valid, I havent been unable to narrow it down any further.

These are not issues that need resolving immediately but thought you should be made aware.


Back to top
View user's profile Send private message

Joined: 16 Jun 2010
Posts: 1144
Location: My desk.

PostPosted: Wed Aug 04, 2010 7:45 pm    Post subject: Reply with quote

Thanks for your post. As you're using the EAP release you probably want to post in the topic for that release so our developers can keep track of it, you'll find it here
Back to top
View user's profile Send private message

Joined: 03 Feb 2010
Posts: 83
Location: Cambridgeshire

PostPosted: Fri Aug 06, 2010 12:46 am    Post subject: Reply with quote

Yeah that almost certainly will be due to the side-by-side (or not side-by-side) strangeness of Silverlight.

With regard to the control flow obfuscation you will probably have to use the "strictly valid" option for Windows Phone Silverlight unless the methods being protected are very small. The standard Microsoft .NET runtimes are fairly relaxed which means that SA can add more protections which are not completely within the spirit of the CLR specification. For non-standard or non-Microsoft runtimes - like Mono and the Windows Mobile version - you generally have to use "strictly valid" otherwise they complain.
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies. All times are GMT + 1 Hour
Page 1 of 1

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2005 phpBB Group