Obfuscate using Command Palette
In order to obfuscate your assemblies using the command palette you need to perform the following:
- Open the Command Palette (
Ctrl+Shift+P/Cmd+Shift+Pon Mac) - Type
Dotfuscator: Obfuscateand press Enter - Select the input: DLL, EXE, or Dotfuscator Config XML file
- Select an output folder — the extension automatically appends an obfuscated subdirectory
- Watch the obfuscation progress in the integrated terminal
Obfuscate using Dotnet SDK integration
In order to obfuscate your assemblies using Dotnet SDK integration do the following:
- Right-click on any .csproj file (either inside the .csproj content, using the tab, or left panel)
- Select from the context menu Dotfuscator > Add Build Integration
- The program will automatically add the default integration for .NET SDK
-
Using Visual Studio Code terminal, you can execute a build command in Release mode:
dotnet build -c Release- Before executing the command, restart the terminal. You may see a warning notification in the terminal asking you to do so.
- Watch the obfuscation progress in the integrated terminal
For detailed information about customizing the configuration file generated by default, see Configuration File Reference.
Generate a Configuration File
For repeatable builds or to customize protection settings, generate a Dotfuscator XML configuration file:
- Open the Command Palette (
Ctrl+Shift+P/Cmd+Shift+Pon Mac) - Type
Dotfuscator: Generate Configand press Enter - Select the input DLL or EXE file
- Choose a location and filename for the output XML configuration file
- The config file is generated in the integrated terminal
- To trigger the build run the steps from Obfuscate using Command Palette
by feeding the generated config.
For detailed information about customizing your configuration file, see Configuration File Reference.