Spices.Net
NET code security, tools to protect, obfuscate, tamper defense, code and data safety, recover, convert, optimize, explore, browse and analyze .Net software.
This forum related to following products: Spices.Net Suite, Spices.Net Obfuscator, Spices.Net Decompiler
MSBuild integration questions
Link
Posted:
12-Jul-2018 02:11
godsdog
Total Posts:13
Joined:7/9/2010
I've some questions about MSBuild integration:
- How to set Members properties? In the help file it explains how to set obfuscation tasks and gives this example:
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<UsingTask TaskName="Obfuscator" AssemblyFile="C:\Program Files\9Rays.Net\Spices5\Bin\NineRays.Build.Tasks.dll"/>
<Target Name="Spices.Obfuscator">
<Obfuscator
InputFiles="$(TargetFileName)"
Options_Members="KeepsInheritance"
Options_Naming="NonDisplayable"
Options_Anonymizer="Minimum"
Options_MixDictionary="true"
Options_StringEncryptionMode="Encrypt3DES"
Options_antiILDASM="True"
StrongNameKeyFile="..\myKeyFile.snk" />
</Target>
</Project>
But how to I set the Options_Members properties? For example, if i wanted to set ComImport=True then would I do that like this:
Options_Members="KeepsInheritance, ComImport"
- If I set multiple assemblies to be obfuscated in a single project, will cross obfuscation be automatically used? Is the possible in MSBuild?
- How do obfuscate assemblies on release mode only?
Link
Posted:
12-Jul-2018 02:30
ninerays
Status:Moderator
Total Posts:189
Joined:11/26/2009
- You can use Spices.Net or utility to form Members string - the string generated in Members property in property grid can be used in Options_Members, so "KeepInheritance, ComImport" is correct.
- Yes, cross obfuscation will be used automatically.