ricaun.ILRepack 1.0.0

Prefix Reserved
dotnet add package ricaun.ILRepack --version 1.0.0                
NuGet\Install-Package ricaun.ILRepack -Version 1.0.0                
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="ricaun.ILRepack" Version="1.0.0">
  <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 ricaun.ILRepack --version 1.0.0                
#r "nuget: ricaun.ILRepack, 1.0.0"                
#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 ricaun.ILRepack as a Cake Addin
#addin nuget:?package=ricaun.ILRepack&version=1.0.0

// Install ricaun.ILRepack as a Cake Tool
#tool nuget:?package=ricaun.ILRepack&version=1.0.0                

ricaun.ILRepack

Visual Studio 2022 Nuke License MIT Build Release

ricaun.ILRepack is a basic repack for .NET assemblies. Uses the package ILRepack version 2.0.36 to repack the assembly using Target to replace the original assembly to the repack assembly with all the dependencies included.

Installation

Install the package using the NuGet package manager or using PackageReference.

<PackageReference Include="ricaun.ILRepack" Version="*">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>

By default the repack is enabled when the package is used, and all the dependencies is repack and removed from the output.

Configuration

PropertyGroups

Property Name Default Value Description
ILRepackEnabled true Enable / Disable ILRepack target task.
ILRepackDeleteEnabled true Enable / Disable delete dependencies repacked from output.
ILRepackImportance Low Log importance to show in the console. (Low or High)
ILRepackCommandImportance Low Log importance from the ILRepack.exe to show in the console. (Low or High)
ILRepackCommandExtra Extra command to be used in the ILRepack.exe.
<PropertyGroup>
  <ILRepackEnabled>true</ILRepackEnabled>
  <ILRepackDeleteEnabled>true</ILRepackDeleteEnabled>
  <ILRepackImportance>Low</ILRepackImportance>
  <ILRepackCommandImportance>Low</ILRepackCommandImportance>
  <ILRepackCommandExtra></ILRepackCommandExtra>
</PropertyGroup>

ItemGroup

Item Group Description
ILRepackIgnoreReferences Ignore references to be repack.
<ItemGroup>
  <ILRepackIgnoreReferences Include="Newtonsoft;System.Text" />
</ItemGroup>

Ignore references to be repack with file name start with Newtonsoft and System.Text.

Todo

  • Add option to ignore specific assembly/dependencies in the ILRepack.
  • Add support to ignore assembly/dependencies in the ILRepack using star, Example: Newtonsoft.
  • Delete dependencies debug file from the output.
  • Remove dependencies to be copy from the output.

Release

License

This project is licensed under the MIT License.


Do you like this project? Please star this project on GitHub!

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • .NETFramework 4.0

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
1.0.0 0 1/30/2025