Dotfuscator User's Guide
Dotfuscate Task

You can run Dotfuscator from MSBuild using the Dotfuscate task. Below are the properties provided by the Dotfuscate task.

Property Type Description
ConfigPath String Write Only. Sets the path to the Dotfuscator configuration file.
DebugSymbols String[] Read Only. Exposes PDB files associated with output assemblies. The PreEmptive.Dotfuscator.Targets file exposes this property as an output Item named DotfuscatedDebugSymbols.
InputAssemblies ITaskItem[] Write Only. Currently, the input assemblies must also be listed in the configuration file. This is only for interoperation with Visual Studio generated project files. This may change in the future.
MappingFile String Read Only. Exposes renaming map file. The PreEmptive.Dotfuscator.Targets file exposes this property as an output Item named DotfuscatorMappingFile.
OutputAssemblies String[] Read Only. Exposes output assemblies. The PreEmptive.Dotfuscator.Targets file exposes this property as an output Item named DotfuscatedAssemblies.
ReportFiles String[] Read Only. Exposes report files such as renaming HTML report and removal reports. The PreEmptive.Dotfuscator.Targets file exposes this property as an output Item named DotfuscatorReportFiles.
SatelliteAssemblies String[] Read Only. Exposes satellite assemblies associated with output assemblies. The PreEmptive.Dotfuscator.Targets file exposes this property as an output Item named DotfuscatedSatelliteAssemblies.
Properties String Write Only. Sets user defined external properties. The string must contain a valid XML element with child elements that represent key/value pairs.

For example:

<Properties>

<Property1>Value1</Property1>

<Property2>2</Property2>

</Properties>

Dotfuscator Project Files in Visual Studio 2005 and later

If you are using the Visual Studio integrated version with Visual Studio 2005 and higher, your Dotfuscator project files are automatically persisted in MSBuild format, so you should be able to take your project tree over to a build machine using MSBuild without Visual Studio and have the build perform the same as it would inside Visual Studio.

 

 


© 2016 PreEmptive Solutions, LLC. All Rights Reserved.

www.preemptive.com