Skip to content

ILRepack dependencies in the source assembly.

License

Notifications You must be signed in to change notification settings

ricaun-io/ricaun.ILRepack

Repository files navigation

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

<PackageReference Include="ricaun.ILRepack" Version="*" />

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.Json.dll" />
</ItemGroup>

Todo

  • Add option to ignore specific assembly/dependencies in the ILRepack.
  • Add support to ignore assembly/dependencies in the ILRepack using start, 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!