Skip to main content
Version: 2024.1

9.3. NuGet Package Manager

NuGet is the package manager for the Microsoft development platform. It allows you to add a library or a tool to your project quickly.

Eazfuscator.NET is not an exception and can be added to your project via NuGet too.

This can be beneficial in several scenarios:

  • Hosted TFS Build Agents may disallow software installs. This depends on TFS infrastructure administration policies. They may prohibit the installation of third-party software on host machines
  • Azure DevOps does not allow software installs

Instructions

Add Gapotchenko.Eazfuscator.NET NuGet package to a project you want to obfuscate. Once the package is added, the project will be automatically obfuscated in Release configuration as usual.

You can specify a different active configuration or pass command-line arguments to Eazfuscator.NET using available MSBuild properties.

To remove the obfuscation, uninstall Gapotchenko.Eazfuscator.NET NuGet package from the corresponding project. Alternatively, you can drop the project in the red zone of Eazfuscator.NET and it will uninstall the package for you.

Licensing

Eazfuscator.NET uses a locally installed license when it works as a NuGet package. If the license is not installed, it looks for EAZFUSCATOR_NET_LICENSE environment variable and gets the license key from there. To license Eazfuscator.NET at a build server, configure EAZFUSCATOR_NET_LICENSE environment variable to contain a corresponding license key.

Alternatively, EazfuscatorLicense MSBuild property may be used to specify a license for Eazfuscator.NET. This approach may be useful in environments that could not propagate the environment variables.