SkillAgentSearch skills...

Ricaun.ILRepack

ILRepack dependencies in the source assembly.

Install / Use

/learn @ricaun-io/Ricaun.ILRepack
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

ricaun.ILRepack

Visual Studio 2022 Nuke License MIT Build Release

ricaun.ILRepack is a basic repack for .NET assemblies. Uses the package ILRepack 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.

Version

The package ILRepack with version 2.0.39 is used by default to repack the assembly, if the your project contains a different version, the package will use the version from the package.

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

Configuration

PropertyGroups

Property Name | Default Value | Description -------------|--------|------------- ILRepackEnabled| true | Enable / Disable ILRepack target task. ILRepackDeleteEnabled| true | Enable / Disable delete dependencies repacked from output. ILRepackCopyDocumentationEnabled | true | Enable / Disable copy xml documentation files alongside repacked assemblies. (Enabled by default and disable when GenerateDocumentationFile is false) ILRepackImportance | High | Log importance to show in the console. (Low or High) ILRepackDeleteImportance | 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>
  <ILRepackCopyDocumentationEnabled>true</ILRepackCopyDocumentationEnabled>
  <ILRepackImportance>High</ILRepackImportance>
  <ILRepackDeleteImportance>Low</ILRepackDeleteImportance>
  <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.

Release

License

This project is licensed under the MIT License.


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

View on GitHub
GitHub Stars12
CategoryDevelopment
Updated1mo ago
Forks2

Languages

C#

Security Score

90/100

Audited on Feb 26, 2026

No findings