/

Configure protections

The content of this article is also available as a video tutorial.

Custom protections with msbuild (3 min)

As we have explained before, you can easily configure the presets, but what if you want to configure the protections by yourself, very easy, you can make use of the tag: Protections: {}.


How to configure the protections

1. Configure the preset as custom

As simple as using the Preset tag and setting it to custom.

{
  "Preset": "custom"
}

2. Configure the protections

Use the Protections tag to define all the protections that should be used to protect your application.

 {
  "Protections": {
    "anti_ildasm": null,
    "anti_debug": null,
    "anti_dump": null
  }
}

It is important that you separate the protections with , and that you always add the ID and not the name of the protection.


How to know the ID of the protections

In this documentation you have the complete list of protections and their availability according to each edition, there you can see the ID of each one of them.

Finally, your configuration should look something like this:

{
  "Name": "My configuration",
  "Preset": "custom",
  "ProjectToken": "e34762f8-8ad6-0000-0000-000000000000",
  "ProtectionSecret": "my-secret",
  "Enable": "True",
  "RunConfiguration": "Release",
  "Protections": {
    "anti_ildasm": null,
    "anti_debug": null,
    "anti_dump": null
  }
}

You can explore further configuration options in the following section:

Shield Configuration Files

How to configure your applications

Shield Protections

How Protections Work

Previous
General Settings