Help us improve Softanics
We use analytics cookies to understand which pages and downloads are useful. No ads. Privacy Policy

TreatAllWarningsAsErrors Property

This parameter is optional.

This parameter tells ArmDot to treat all warnings as errors. Because an error occurred, no obfuscated assembly was generated:

<Target Name = "Protect" AfterTargets="AfterCompile" BeforeTargets="BeforePublish">
  <ItemGroup>
     <Assemblies Include = "$(ProjectDir)$(IntermediateOutputPath)$(TargetFileName)" / >
  </ItemGroup>
  <ArmDot.Engine.MSBuildTasks.ObfuscateTask
    Inputs = "@(Assemblies)"
    TreatAllWarningsAsErrors="true"
    ReferencePaths="@(_ResolveAssemblyReferenceResolvedFiles->'%(RootDir)%(Directory)')"
    SkipAlreadyObfuscatedAssemblies="true"
  />
</Target>
bool TreatAllWarningsAsErrors { get; set; }