Avalonia Protection Guide
ByteHide Shield is an official Avalonia UI partner providing seamless security integration for Avalonia applications. As announced by Avalonia, this partnership ensures your cross-platform desktop applications are protected against reverse engineering and tampering.
Out-of-the-Box Integration
ByteHide Shield works with Avalonia applications without any special configuration:
- Automatic Detection: Shield automatically identifies Avalonia assemblies and components
- Zero Configuration: No special setup required - works immediately with all Shield integration methods
- Full Compatibility: Maintains all Avalonia functionality including XAML controls, reactive properties, and platform-specific features
Avalonia-Specific Optimizations
Shield automatically makes specific considerations for Avalonia applications:
- XAML Validation: Special handling for XAML resources while preserving UI functionality
- Reactive Property Preservation: Maintains ReactiveUI pattern recognition while obfuscating implementation details
- Cross-Platform Awareness: Preserves platform-specific code paths for Windows, macOS, and Linux targets
- View/ViewModel Relationship Preservation: Maintains MVVM architecture patterns while securing code
Recommended Protection Settings
While Shield works with Avalonia out-of-the-box, we recommend these settings for optimal security:
{
"protections": {
"rename": { "mode": "ascii" },
"control_flow_advance": {},
"constant_encryption": {},
"constant_mutation": {},
"virtualization": {}
}
}
Usage Examples
Using Shield with Avalonia is identical to using it with any .NET application:
Simple Integration
Add the ByteHide Shield NuGet package to your Avalonia project:
dotnet add package ByteHide.Shield.Integration
Shield will automatically detect and apply appropriate protections for Avalonia.
Trusted by Avalonia Developers
As an official partner of Avalonia UI, ByteHide Shield is recommended for securing cross-platform desktop applications built with Avalonia. Our partnership ensures continued compatibility and optimization as both platforms evolve.