/

Configuration Workflow

The ByteHide Shield desktop configurator provides a streamlined workflow for protecting your Visual Studio solutions. This guide walks you through the entire process from opening your solution to applying protection.


Configuration Workflow Overview

The typical workflow for using the Shield desktop configurator consists of these key steps:

  1. Select your Visual Studio solution file
  2. Install the Shield integration package (if needed)
  3. Configure your ByteHide Shield token
  4. Configure general settings
  5. Customize protection settings
  6. Apply protection to your projects

Step 1: Selecting Your Solution

When you launch the Shield configurator, you'll be prompted to select your Visual Studio solution file:

Shield Config Welcome Screen

  1. Click Browse for Solution File or drag and drop your .sln file into the designated area
  2. Once selected, the configurator will analyze your solution and display all projects

Shield Projects Screen

The configurator supports all Visual Studio solution types including .NET Framework, .NET Core, and .NET 5+.


Step 2: Installing the Shield Integration Package

If the Shield integration package is not already installed in your projects, you'll see a notification:

  1. Look for the "Integration package not installed" message
  2. Click Install Package to add the ByteHide Shield package to your project
  3. The configurator will handle the NuGet package installation automatically

Package Installation


Step 3: Configuring Your Token

After selecting your solution, you'll need to configure your ByteHide Shield token:

  1. Navigate to the ByteHide Shield Token section
  2. Enter your project token in the provided field
  3. Click Verify to validate your token
  4. Optionally, enable the "Use environment variable" option if you prefer to store your token as an environment variable

Token Configuration

If you don't have a project token yet, see Get Project Token for detailed instructions on obtaining one.


Step 4: Configuring General Settings

Configure the general settings for your solution:

  1. Expand the General Configuration section
  2. Set your Protection Secret (or leave empty to auto-generate)
  3. Configure the Run Configuration to specify when protection should be applied (e.g., Release mode only)
  4. Toggle options like Fail build on protection error
  5. Enable Copy Magic Key if you need the magic file for debugging

General Configuration

The Protection Secret is used for debugging protected applications and decoding obfuscated stack traces. If you don't specify one, a random value will be generated.


Step 5: Customizing Protection Settings

Customize the protection settings for your solution:

  1. Expand the Protection Settings section
  2. Select a protection preset (Maximum, Balance, Optimized) or choose Custom
  3. For custom protection, toggle individual protections on/off
  4. Configure specific parameters for each enabled protection

Protection Settings

Protection Settings custom


Step 6: Copying Settings Between Projects

If you have multiple projects and want to use the same settings:

Copy Settings

  1. Click Copy settings to...
  2. Select the source project with your configured settings
  3. Select the target project(s) to receive these settings
  4. Click Copy Settings to apply

Copy Settings


Saving Configuration

The configurator automatically saves your settings. Look for the "Automatically saved" indicator at the bottom of the screen to confirm your changes have been preserved.


Next Steps

After configuring your protection settings, you can:

  • Build your solution within Visual Studio to apply the protection
  • Test your protected application
  • Fine-tune protection settings as needed

Protection Settings

Learn more about available protection options

Advanced Features

Discover advanced configuration options

Previous
Installation & Setup