Reuse your Studio settings in release builds

Save the configuration you tested in the desktop app and apply it to the next release from the command line.

Save a protection project

Choose the assemblies, output location and exclusion rules, then save the .cfsprj project. On the build machine, verify that its input paths point to the new Release build.

Preview the output

Run these PowerShell commands from the Studio installation folder. The first previews the output. The second writes protected files to the chosen folder. Substitute your project name and output path.

& '.\cli\Confuser.Cli.exe' '.\MyApp.cfsprj' --preview-deployment
& '.\cli\Confuser.Cli.exe' '.\MyApp.cfsprj' --output 'D:\Protected'

Keep a name map for each release

Check the CLI exit code, then run the application using the protected files. Archive the private name mapping with the matching release so you can recover original method names from a stack trace.

Official CLI build guide