Warnings and Errors

Eazfuscator.NET

Warnings and Errors

Disabling Warnings

  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 = "disable warning EF-XXXX")]
    Imports System
    Imports System.Reflection
    
    <Assembly: Obfuscation(Feature:="disable warning EF-XXXX")> 
    
[Note] Note
EF-XXXX must be changed with an identifier of a warning you want to disable.

Treat Warnings as Errors

  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 = "treat all warnings as errors")]
    Imports System
    Imports System.Reflection
    
    <Assembly: Obfuscation(Feature:="treat all warnings as errors")> 
    
[Tip] Tip
There is a command line option --warnings-as-errors all which can be specified to achieve this functionality.
  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 = "treat warning EF-XXXX as error")]
    Imports System
    Imports System.Reflection
    
    <Assembly: Obfuscation(Feature:="treat warning EF-XXXX as error")> 
    
[Tip] Tip
There is a command line option --warnings-as-errors EF-XXXX which can be specified to achieve this functionality.
[Note] Note
EF-XXXX must be changed with an identifier of a warning you want to treat as an error.