Confuser.CLI.exe [options] <project-file>The project file is a .crproj XML file describing which modules to protect and which protections to apply. See Project File Format.
| Option | Description |
|---|---|
-n, --noPause |
Do not pause after finishing (useful in CI/CD) |
-o, --out <dir> |
Override the output directory from the project file |
-probe <dir> |
Add a probe directory for dependency resolution |
-plugin <path> |
Load a protection plugin from the given path |
-debug |
Generate debug symbols (.pdb) for the protected output |
-snkey <path> |
Strong name key file (.snk or .pfx) for signing |
-snkeypass <password> |
Password for the strong name key (when using .pfx) |
Confuser.CLI.exe MyApp.crprojConfuser.CLI.exe MyApp.crproj -o ./protectedConfuser.CLI.exe MyApp.crproj -n -snkey signing.snkConfuser.CLI.exe MyApp.crproj -plugin ./MyCustomProtection.dllConfuser.CLI.exe MyApp.crproj -probe ./libs -probe ./shared| Code | Meaning |
|---|---|
0 |
Protection completed successfully |
| non-zero | Protection failed (check console output for details) |
The Confuser.MSBuild.Tasks NuGet package runs the CLI as a post-build step:
<PackageReference Include="Confuser.MSBuild.Tasks" Version="1.7.0-*" />