Obfuscate and Replace Source Assemblies Automatically

How to obfuscate and replace the source assemblies automatically?

1.    Open your source projects or solution in Visual Studio.

2.    For each project:

a.     Right click the project in the “Solution Explorer” window and select the “Properties” menu item to open its properties window.

b.  Click the “Build Events” tab, copy the following command line into the “Post-build event command line”:

"C:\Program Files\Macrobject\Obfuscator.NET 2009\Obfuscator.exe" /pfile="$(TargetDir)$(TargetFileName)";outfile="$(TargetDir)$(TargetFileName)";auto=1;overwrite=1

3.    The obfuscated assemblies will replace the originals when you rebuild the projects or the solution.

 

Please see “Using Command Line” for command-line information.