Red Gate forums :: View topic - Best practice for Obfuscating a common .dll
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

Best practice for Obfuscating a common .dll

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



Joined: 13 Feb 2014
Posts: 4

PostPosted: Tue Jul 08, 2014 9:30 pm    Post subject: Best practice for Obfuscating a common .dll Reply with quote

My deployment has 2 executables and a group of common .dlls which the 2 executables use. I currently have one project for the primary .dll and one project for each .exe (3 projects total). The .dll one is set to obfuscate the .dll and embed the other shared .dll's (merging will break things). The two .exe's will just obfuscate the .exe (no embedding). But, when generating references for the .exe's, it references the unobfuscated .dll. When I try to run either .exe, something isn't resolving.

So, what is the best way to configure this to use the common obfuscated .dll? Do I need to modify the .saproj file to set the path of the .dll? Better options?

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



Joined: 23 Apr 2012
Posts: 235

PostPosted: Thu Jul 10, 2014 12:15 am    Post subject: Reply with quote

Hi there,

Thanks for you post!

You can direct SmartAssembly to use the obfuscated version of the .dll by adding MandatoryPath attributes to your exes' saproj files - http://documentation.red-gate.com/display/SA6/How+SmartAssembly+searches+for+dependencies

However, if the exes are still referencing the unobfuscated version of the .dll, I'm not sure why that would cause assembly-resolving issues at runtime, since they will still use the obfuscated versions (assuming they're sitting alongside the exes) which *should* work alright..

Just to confirm--are the EXEs having trouble resolving the main .dll or one of its embedded ones?
_________________
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