Use Dotfuscator samples to explore common protection scenarios before applying similar settings to your own application.
Dotfuscator samples are available on GitHub. Each sample demonstrates a specific protection workflow, application type, or configuration scenario.
Choose a Sample
Use the following table to choose the sample that best matches your goal.
| Sample | Demonstrates | Use it when |
| GettingStarted | Basic Dotfuscator integration with a .NET framework application. | You are protecting an app with Dotfuscator for the first time. |
| MauiSample_App | Dotfuscator's protection on a MAUI application | You want to protect a MAUI application. |
| ResourceEncryptionSample | Dotfuscator's Resource Encryption feature | Protect applications with string, icon, and image type data. |
| ASP.NET Core | Dotfuscator protection for ASP.NET Core apps | You want to protect an ASP.NET Core application. |
| Reflection | Dotfuscator configuration for apps that use reflection | Your app uses reflection, and you need to prevent runtime issues after Renaming. |
| Serialization | Dotfuscator configuration for apps that serialize objects | Your app uses serialized objects and needs compatible protection settings. |
| protected-bugsweeper | Dotfuscator protection in a Xamarin app with Root Checks and Tamper Checks configured | You want to protect a Xamarin app and add Android runtime Checks. |
| protected-TodoAzureAuth | Xamarin app protection with Root Checks and rooted-device response examples | You want to detect and respond to rooted Android devices in a Xamarin app. |
| protected-adventureworks | Dotfuscator's runtime protection Checks protection on a WPF application | You want to review a desktop app example that uses Checks. |
| dot-check-sample | Dotfuscator's anti-debugging protection patterns on a WPF application | You want to review a Debugging Check example. |
Recommended Starting Point
If you are new to Dotfuscator, start with the GettingStarted sample.
This sample supports the workflow in Walkthrough: Protect .NET Framework Sample App with MSBuild and helps you understand how Dotfuscator integrates with a project, generates a configuration file, creates protected output, and produces report files.
After you complete the GettingStarted sample, review samples that match your application type or protection scenario.
Use Samples Safely
Before applying sample settings to your own application:
- Review what the sample demonstrates.
- Confirm that the protection settings apply to your application type.
- Change one protection setting at a time.
- Build and test the protected output after each change.
- Avoid copying sample configuration values without reviewing their purpose.
- Archive report files for any protected build that you plan to release.
Next Steps
After reviewing the samples:
- Configure Dotfuscator build integration for your own project.
- Enhance protection after your first build.
- Review the release checklist before distributing protected software.