Red Gate forums :: View topic - Silverlight obfuscation problem
Return to www.red-gate.com RSS Feed Available

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

Silverlight obfuscation problem

Search in SmartAssembly 6 forum
Post new topic   Reply to topic
Jump to:  
Author Message
Mikhail Girkin



Joined: 24 Jun 2013
Posts: 4

PostPosted: Tue Jul 16, 2013 5:15 pm    Post subject: Silverlight obfuscation problem Reply with quote

Hi!

I've got a problem when obfuscating Silverlight 4 solution. Our solution consist of several c# projects (~10), and the problem comes from assembly references from XAML code. If I add an assembly that is referenced from XAML to a "merge" (not really related to obfuscation itself), then Silverlight runtime could not load types from that assembly, if the assebmly doesn't included - everything goes ok.
Is there an options, or configuration section to make this stuff work, when all the asseblies in solution is merged? Or may be I didn't find the section in the documentation related to this problem?

Thanks!
Back to top
View user's profile Send private message AIM Address
jessica.ramos



Joined: 23 Apr 2012
Posts: 184

PostPosted: Wed Jul 17, 2013 6:21 pm    Post subject: Reply with quote

Thank you for your post!

If you've enabled obfuscation on your main assembly, the same settings will be applied to the merged assemblies as well. Could you kindly try excluding the types that can't be loaded from obfuscation (either through the SmartAssembly UI or using the custom attributes)?

You can try turning on error reporting to help find which types need to be excluded.

Hope that helps!
_________________
Jessica Ramos
Technical Support
Red Gate Software Ltd.
Back to top
View user's profile Send private message
Mikhail Girkin



Joined: 24 Jun 2013
Posts: 4

PostPosted: Thu Jul 18, 2013 10:34 am    Post subject: Reply with quote

I already tried to exclude all the types from assemblies that referenced, this doesn't help.

The main problem, as I understand comes from merging assemblies. For example I have the following line of code in my XAML:

xmlns:View="clr-namespace:Insight.BaseScreen.View;assembly=Insight.BaseScreen"

I also want to obfuscate Insight.BaseScreen assembly, but if I include it in merge process, disabling every other stuff (pruning, obfuscation, etc) - Silvelight cannot load the requested types.
I could not include any single assembly in merge that is referenced from merged assembly like I shown before.
Back to top
View user's profile Send private message AIM Address
jessica.ramos



Joined: 23 Apr 2012
Posts: 184

PostPosted: Sat Jul 20, 2013 12:32 am    Post subject: Reply with quote

Sorry to hear that didn't help!

Hm, can I check--what version of SmartAssembly are you using?

Could you kindly give embedding a try (the assembly will keep its identity)?
_________________
Jessica Ramos
Technical Support
Red Gate Software Ltd.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic 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