Saving a Configuration File from the Command Line

Once you have the command line settings that you want for your application, you can save a configuration file containing those settings by using the /makeconfig option. This will take all your command line options, merge them with your configuration template if you have one, and save a custom configuration file that you can use by itself for future runs.

Example:

dotfuscator -in:my.dll -keep:namespace -make:new.xml myconfig.xml

The resulting configuration file (new.xml) shows the command line options merged with the options from the original configuration (myconfig.xml):

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE dotfuscator SYSTEM "https://www.preemptive.com/dotfuscator/dtd/dotfuscator_v2.1.dtd">
<dotfuscator version="2.1">
  <input>
    <asmlist>
      <inputassembly>
        <option>library</option>
        <file dir="." name="my.dll" />
      </inputassembly>
    </asmlist>
  </input>
  <output>
    <file dir="C:\MSProjects\dotfuscatortest\Dotfuscated" />
  </output>
  <renaming>
    <option>keepnamespace</option>
    <mapping>
      <mapoutput overwrite="true">
        <file dir="${configdir}\reports" name="MyMap.xml" />
      </mapoutput>
    </mapping>
  </renaming>
</dotfuscator>

© 2002-2007 PreEmptive Solutions. All rights reserved.