Files
SzmediTools/Szmedi.RvKits/Szmedi.RvKits.crproj
2026-01-16 17:07:43 +08:00

32 lines
1.4 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<project outputDir="." baseDir="." xmlns="http://confuser.codeplex.com">
<!--
1. 全局规则:开启常规混淆
preset="normal" 包含了:控制流混淆、参数重命名、资源加密等。
它也会默认开启重命名rename
-->
<rule pattern="true" preset="normal">
<!-- 可以在这里微调全局设置,比如加强控制流 -->
<protection id="ctrl flow" />
<!-- 关键:禁止重命名 BAML 文件名,保证 "WPFUI.xaml" 依然叫 "wpfui.baml" -->
<protection id="rename">
<argument name="renXaml" value="false" />
</protection>
</rule>
<!--
2. 关键规则:保留所有类名(不重命名类)
pattern="member-type('type')" 意思是指匹配所有的“类型”定义Class/Interface/Struct
action="remove" 意思是指:对匹配到的这些项,移除指定的保护。
-->
<rule pattern="member-type('type')">
<protection id="rename" action="remove" />
</rule>
<!-- 4. 指定模块 -->
<module path="Szmedi.RvKits.dll" />
<!-- 5. 引用路径 (非常重要) -->
<!-- 为了让ConfuserEx知道哪些方法是接口实现从而不重命名它们它需要找到 RevitAPI.dll -->
<!-- 请根据您的Revit安装路径修改或者确保RevitAPI.dll在编译输出目录中 -->
<!-- <probePath>C:\Program Files\Autodesk\Revit 2020</probePath>-->
</project>