Design-Time Usage Protection

Eazfuscator.NET

Design-Time Usage Protection

Overview

How It Works

Component Designer Suppression

Visual Studio designer before obfuscation with enabled design-time usage protection
Visual Studio designer after obfuscation with enabled design-time usage protection

Public API Surface Shrink

Instructions

  1. Open obfuscatable project inside the IDE
  2. Add new source file to the project and call it ObfuscationSettings.cs (for C#) or ObfuscationSettings.vb (for Visual Basic .NET). You may prefer to use another name instead of ObfuscationSettings.cs or ObfuscationSettings.vb
  3. using System;
    using System.Reflection;
    
    [assembly: Obfuscation(Feature = "design-time usage protection", Exclude = false)]
    Imports System
    Imports System.Reflection
    
    <Assembly: Obfuscation(Feature:="design-time usage protection", Exclude:=False)> 
    

Tuning

[assembly: Obfuscation(Feature = "design-time usage protection [flags]", Exclude = false)]
Flag Description
no_cds Disables the component designer suppression
arguments=keep Disables the method arguments renaming
arguments=auto Eazfuscator.NET automatically decides which arguments to rename during public API surface shrink. This is the default setting
arguments=rename All method arguments are renamed during public API surface shrink. Note that this seeting may cause troubles with optional parameters if they are referenced by names in source code
using System;
using System.Reflection;

[assembly: Obfuscation(Feature = "design-time usage protection [no_cds arguments=rename]", Exclude = false)]