Obfuscating non-dependent assemblies

.NET obfuscator and automated error reporting

Moderators: Luke Jefferson, Alex.Davies, melvyn.harbour

Obfuscating non-dependent assemblies

Postby mcobrien » Mon Jul 19, 2010 11:13 am

I'm evaluating SA at the moment and there's one Dotfuscator feature I'm trying to find. With Dotfuscator (which I really, *really* want to leave behind!), I can obfuscate an arbitrary set of assemblies, regardless of their dependencies. With SA that doesn't seem to be possible.

Specifically, let's say I have three assemblies I want to obfuscate: Console, Library and Plugin. Both Plugin and Console depend on Library, so I can obfuscate two pretty easily (if I use embedding or merging), and with two SA projects I could obfuscate all three.

However, Console works by loading Plugin via reflection, so the types in Library have to be obfuscated to the same names when I run SA against Console and Plugin. I guess I also want Library to remain an external assembly, though still have it obfuscated.

Is this possible?
mcobrien
 
Posts: 3
Joined: Mon Jul 19, 2010 11:00 am

Postby Alex.Davies » Thu Jul 29, 2010 10:15 am

The way to do this is using a separate SA project for each assembly.
Alex
Developer,
Red Gate .NET Tools
Alex.Davies
 
Posts: 335
Joined: Tue Dec 02, 2008 12:23 pm
Location: Cambridge, uk

Postby Uniwares_AS » Thu Jul 29, 2010 1:02 pm

If there are no other dependencies you can also use one "generic" project file and use the inputfile/outputfile feature.
Even with dependencies you can add the dependencies of all your assemblies into one project file.
Uniwares_AS
 
Posts: 132
Joined: Thu Oct 11, 2007 3:29 pm


Return to SmartAssembly 5

Who is online

Users browsing this forum: No registered users and 0 guests