Here is the little post about how to do obfuscation in local.We will use Dotfuscator CE which comes with VS2010
1. Create backup of ProductObfuscation.xml (ie. SearchObfuscation.xml). File is located in Solution/Depending/Setup
2. Open ProductObfuscation.xml and check if Obfuscation version is 2.2 <dotfuscator version = "2.2"> If it's higher than 2.2 (ie. 2.3) rename it to 2.2
3. Check if you have Release build
4. In ProductObfuscation.xml change builddir and dotfuscateddir to point local version on your hard drive (ie. for Search, builddir should be C:\ApexSQL\axSearch\Branches\2012.01\Build\Release, and dotfuscateddir should be C:\ApexSQL\axSearch\Branches\2012.01\Build\Release/Dotfuscated
5. Open ProductObfuscation.xml in Dotfuscator CE
6. Add classes, types, methods which will be excluded from obfuscation, and save file
7. Start ofuscation by pressing Build project.
8. When it's done, we should test if everything is ok. Copy obfuscated files over ones in Release folder.
9. Next step is to sign obfuscated files. Dotfuscator CE doesn't sign those files automatically, so everything must be made manually. First, open VS Command Promt. Point to folder where obfuscated files are located. Type this command "sn -Rc ApexSql.Debug.dll ApexSql_DigitalSigning_Binaries" (ApexSql.Debug.dll replace with your dlls)
10. Create installation and check if everything is ok
11. If it is, compare ProductObfuscation.xml and its backup, and copy only changes.
12. Replace ProductObfuscation.xml with backup, and checkin
And that's it.
1. Create backup of ProductObfuscation.xml (ie. SearchObfuscation.xml). File is located in Solution/Depending/Setup
2. Open ProductObfuscation.xml and check if Obfuscation version is 2.2 <dotfuscator version = "2.2"> If it's higher than 2.2 (ie. 2.3) rename it to 2.2
3. Check if you have Release build
4. In ProductObfuscation.xml change builddir and dotfuscateddir to point local version on your hard drive (ie. for Search, builddir should be C:\ApexSQL\axSearch\Branches\2012.01\Build\Release, and dotfuscateddir should be C:\ApexSQL\axSearch\Branches\2012.01\Build\Release/Dotfuscated
5. Open ProductObfuscation.xml in Dotfuscator CE
6. Add classes, types, methods which will be excluded from obfuscation, and save file
7. Start ofuscation by pressing Build project.
8. When it's done, we should test if everything is ok. Copy obfuscated files over ones in Release folder.
9. Next step is to sign obfuscated files. Dotfuscator CE doesn't sign those files automatically, so everything must be made manually. First, open VS Command Promt. Point to folder where obfuscated files are located. Type this command "sn -Rc ApexSql.Debug.dll ApexSql_DigitalSigning_Binaries" (ApexSql.Debug.dll replace with your dlls)
10. Create installation and check if everything is ok
11. If it is, compare ProductObfuscation.xml and its backup, and copy only changes.
12. Replace ProductObfuscation.xml with backup, and checkin
And that's it.
No comments:
Post a Comment