Hsu.Obfuscar.DotNetTool
2023.412.21
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Hsu.Obfuscar.DotNetTool --version 2023.412.21
NuGet\Install-Package Hsu.Obfuscar.DotNetTool -Version 2023.412.21
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="2023.412.21"> <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.
paket add Hsu.Obfuscar.DotNetTool --version 2023.412.21
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Hsu.Obfuscar.DotNetTool, 2023.412.21"
#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.
// Install Hsu.Obfuscar.DotNetTool as a Cake Addin #addin nuget:?package=Hsu.Obfuscar.DotNetTool&version=2023.412.21 // Install Hsu.Obfuscar.DotNetTool as a Cake Tool #tool nuget:?package=Hsu.Obfuscar.DotNetTool&version=2023.412.21
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Hsu.Obfuscar.DotNetTool
Use Obfuscar.GlobalTool to obfuscate .NET code.
Package Version
Name | Source | Stable | Preview |
---|---|---|---|
Hsu.Obfuscar.DotNetTool | Nuget | ||
Hsu.Obfuscar.DotNetTool | 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 and obfuscar.assemblies[-fw].xml
will be created to the .obfuscar
folder.
- 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[-fw].xml
contents
<?xml version="1.0"?>
<Include>
<AssemblySearchPath path='.' />
</Include>
You can also modify the obfuscar.xml
and obfuscar.assemblies[-fw].xml
file to change the default values.
Generated files
- Single framework
-- .obfuscar
|-- obfuscar.xml
|-- obfuscar.assemblies.xml
- Multiple framework
-- .obfuscar
|-- obfuscar.xml
|-- obfuscar.assemblies-net462.xml
|-- obfuscar.assemblies-net6.0.xml
|-- obfuscar.assemblies-net8.0.xml
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 |
---|---|---|
2024.103.4 | 243 | 3/4/2024 |
2024.103.4-rc204633 | 142 | 3/4/2024 |
2023.412.21 | 197 | 12/21/2023 |
2023.412.21-rc201446 | 113 | 12/21/2023 |
2023.412.21-rc003945 | 122 | 12/20/2023 |
2023.412.20-rc203929 | 175 | 12/20/2023 |
2023.412.16 | 160 | 12/15/2023 |
2023.412.16-rc001056 | 139 | 12/15/2023 |
2023.412.14 | 170 | 12/15/2023 |