通过命令行保存配置文件
在有了要用于应用程序的命令行设置之后,可以使用 /makeconfig 选项将这些设置保存到配置文件中。此操作会将您的所有命令行选项与配置模板(如果有)进行合并,并保存到一个自定义配置文件中,以便以后单独使用。
示例:
dotfuscator -in:my.dll -keep:namespace -make:new.xml myconfig.xml
结果配置文件 (new.xml) 的内容表明命令行选项与原始配置文件 (myconfig.xml) 的选项进行了合并:
<?xml version="1.0" encoding="utf-8" standalone="no"?> <!DOCTYPE dotfuscator SYSTEM "http://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. 保留所有权利。