Obfuscar.MsBuild 2.2.52

dotnet add package Obfuscar.MsBuild --version 2.2.52
                    
NuGet\Install-Package Obfuscar.MsBuild -Version 2.2.52
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Obfuscar.MsBuild" Version="2.2.52">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Obfuscar.MsBuild" Version="2.2.52" />
                    
Directory.Packages.props
<PackageReference Include="Obfuscar.MsBuild">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Obfuscar.MsBuild --version 2.2.52
                    
#r "nuget: Obfuscar.MsBuild, 2.2.52"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Obfuscar.MsBuild@2.2.52
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Obfuscar.MsBuild&version=2.2.52
                    
Install as a Cake Addin
#tool nuget:?package=Obfuscar.MsBuild&version=2.2.52
                    
Install as a Cake Tool

Obfuscar.MsBuild

MSBuild integration for Obfuscar. Adding this package as a PackageReference restores Obfuscar and runs the Obfuscate task after Build.

This package is a development dependency. It does not ship as a runtime library.

Install

dotnet add package Obfuscar.MsBuild

Or Package Manager:

Install-Package Obfuscar.MsBuild

Usage

No extra PackageReference to Obfuscar is required. After restore, build the project. Obfuscation runs automatically.

Optional Obfuscar.xml in the project or solution directory is used when present; otherwise a built-in template is applied.

Properties

Property Default Meaning
ObfuscarEnabled true Set to false to skip obfuscation.
Obfuscator_Targets Debug,Release Configurations that are obfuscated.
Obfuscator_Path restored Obfuscar.Console.exe Override the Obfuscar executable.
Obfuscar set by the Obfuscar package Alternate path to Obfuscar.Console.exe.
Obfuscator_ConfigTemplate Obfuscar.xml if found Path to an Obfuscar config template.

Example: obfuscate Release only.

<PropertyGroup>
  <Obfuscator_Targets>Release</Obfuscator_Targets>
</PropertyGroup>

Documentation

Obfuscar configuration: docs.obfuscar.com.

License

MIT. See the LICENSE file in the repository.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • .NETFramework 4.7.2

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.2.52 394 10/23/2026
2.2.51 107 10/23/2026
2.2.50 711 2/6/2026
2.2.47 1,865 5/8/2025
2.2.38.1 1,575 12/28/2023
2.2.38 565 8/31/2023
2.2.37.1 3,309 1/25/2023
2.2.37 522 1/25/2023
2.2.33 985 4/16/2022
2.2.31 719 9/21/2021

Includes 'Obfuscar' v2.2.50 in a solution-level NuGet package