Red Gate forums :: View topic - Assembly Loading question
Return to www.red-gate.com RSS Feed Available

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

Assembly Loading question

Search in SmartAssembly EAP 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
Andre Azevedo



Joined: 09 May 2010
Posts: 1

PostPosted: Sun May 09, 2010 12:10 am    Post subject: Assembly Loading question Reply with quote

Hi,

I'm using SA4 and I need to know how SA works on the following scenario:

One class library A that references another class library B. Assembly A was obfuscated with SA setting assembly B with dependency merging. So far so good.

Now, I've a console app X, that also references assembly B. On the X app, I use reflection to load obfuscated assembly A. The question is: Which assembly B the code from Assembly A will use? The one from X app or the one from Assembly A (that was dependency merged)?

Thanks!
Back to top
View user's profile Send private message
Alex.Davies



Joined: 02 Dec 2008
Posts: 335
Location: Cambridge, uk

PostPosted: Mon May 10, 2010 11:09 am    Post subject: Reply with quote

A will always use the merged version, since once an assembly is merged into another assembly, it genuinely becomes part of that assembly, and it would be impossible for types to be resolved outside.

The console app will definitely not use the merged copy directly.
_________________
Alex
Developer,
Red Gate .NET Tools
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