Dotfuscator allows you to specify programs that run before and after its build sequence.
In its build process, Dotfuscator executes the program specified by the pre build event before it does anything else with your input assemblies.
Dotfuscator executes the program specified by the post build event at the very end of its build process. You can tell Dotfuscator to execute the program only when the build succeeds, only when the build fails, or all the time. In addition, you can tell Dotfuscator to run the program once for each output module.
The Dotfuscator build engine exposes several properties that you can use when configuring build events:
|dotf.destination||Path to the destination directory.|
|dotf.inputmap.xml||Full path and filename to the input map file if specified.|
|dotf.outputmap.xml||Full path and filename to the output map file if specified.|
|dotf.removal.xml||Full path and filename to the XML removal file if specified.|
|dotf.config.file||Full path to the current configuration file.|
|dotf.current.out.module||Full path to the current output module. Used in the post build event when the program is called for each output module.|
|dotf.current.in.module||Full path to the current input module. Used in the post build event when the program is called for each output module.|
You can also reference external properties (environment variables or properties passed on the command line using the -
p option) and user defined project properties in your build events.