Hsu.Obfuscar.DotNetTool 2026.101.5

dotnet add package Hsu.Obfuscar.DotNetTool --version 2026.101.5
                    
NuGet\Install-Package Hsu.Obfuscar.DotNetTool -Version 2026.101.5
                    
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="Hsu.Obfuscar.DotNetTool" Version="2026.101.5">
  <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="Hsu.Obfuscar.DotNetTool" Version="2026.101.5" />
                    
Directory.Packages.props
<PackageReference Include="Hsu.Obfuscar.DotNetTool">
  <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 Hsu.Obfuscar.DotNetTool --version 2026.101.5
                    
#r "nuget: Hsu.Obfuscar.DotNetTool, 2026.101.5"
                    
#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 Hsu.Obfuscar.DotNetTool@2026.101.5
                    
#: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=Hsu.Obfuscar.DotNetTool&version=2026.101.5
                    
Install as a Cake Addin
#tool nuget:?package=Hsu.Obfuscar.DotNetTool&version=2026.101.5
                    
Install as a Cake Tool

Hsu.Obfuscar.DotNetTool

dev preview main Obfuscar Nuke Build windows linux

Use Obfuscar.GlobalTool to obfuscate .NET code.

Package Version

Name Source Stable Preview
Hsu.Obfuscar.DotNetTool Nuget NuGet NuGet
Hsu.Obfuscar.DotNetTool MyGet MyGet MyGet

Usage

Install Obfuscar.GlobalTool

Global installation:

dotnet tool install --global Obfuscar.GlobalTool --version 2.2.38

Local installation:

dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local Obfuscar.GlobalTool --version 2.2.38

Install Hsu.Obfuscar.DotNetTool

See NuGet.

Configuration

  • Add AssemblySearchPath file:

       <PropertyGroup>
           <ObfuscarAssembliesInclude>true</ObfuscarAssembliesInclude>
       </PropertyGroup>
    

    When you build the project, the obfuscar.xml file will be created to the root folder of project and obfuscar.assemblies.xml will be created to the output folder of project.

  • Default obfuscar.xml contents

    <?xml version="1.0"?>
    <Obfuscator>
    
    
    
      <Var name="InPath" value="." />
      <Var name="OutPath" value="obfuscated" />
      <Var name="RenameFields" value="true" />
      <Var name="RenameProperties" value="true" />
      <Var name="RenameEvents" value="true" />
      <Var name="KeepPublicApi" value="true" />
      <Var name="HidePrivateApi" value="true" />
      <Var name="ReuseNames" value="true" />
      <Var name="UseUnicodeNames" value="false" />
      <Var name="UseKoreanNames" value="false" />
      <Var name="HideStrings" value="false" />
      <Var name="OptimizeMethods" value="true" />
      <Var name="SuppressIldasm" value="false" />
    
      <Module file="ConsoleSample.dll">
        <SkipEnums value="true" />
      </Module>
    
    
      <Include path="obfuscar.assemblies.xml" />
    </Obfuscator>
    
  • Default obfuscar.assemblies.xml contents

    <?xml version="1.0"?>
    <Include>
        <AssemblySearchPath path='.' />
    </Include>
    

    You can also modify the obfuscar.xml file to change the default values.

    You can also modify the AssemblySearchNames property will auto gen AssemblySearchPath in obfuscar.assemblies.xml file.

  • AssemblySearchNames

    <PropertyGroup>
        <AssemblySearchNames>Microsoft.CodeAnalysis.dll;Microsoft.CodeAnalysis.CSharp.dll</AssemblySearchNames>
    </PropertyGroup>
    
  • obfuscar.assemblies.xml

    <?xml version="1.0"?>
    <Include>
        <AssemblySearchPath path='C:\Users\Administrator\.nuget\packages\microsoft.codeanalysis.csharp\4.7.0\lib\netstandard2.0' />
        <AssemblySearchPath path='C:\Users\Administrator\.nuget\packages\microsoft.codeanalysis.common\4.7.0\lib\netstandard2.0' />
    </Include>
    

License

MIT

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

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
2026.101.5 178 1/5/2026
2026.101.5-rc141831 155 1/5/2026
2026.101.5-rc135923 158 1/5/2026
2024.103.4 685 3/4/2024
2024.103.4-rc204633 419 3/4/2024
2023.412.21 489 12/21/2023
2023.412.21-rc201446 390 12/21/2023
2023.412.21-rc003945 388 12/20/2023
2023.412.20-rc203929 456 12/20/2023
2023.412.16 426 12/15/2023
2023.412.16-rc001056 410 12/15/2023
2023.412.14 442 12/15/2023