UnityExplorer/src/ILRepack.targets

41 lines
1.8 KiB
Plaintext
Raw Normal View History

<?xml version="1.0" encoding="utf-8" ?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="ILRepacker" AfterTargets="Build">
2021-05-23 13:58:26 +10:00
<!-- Actual merged assemblies -->
<ItemGroup>
<InputAssemblies Include="$(OutputPath)$(AssemblyName).dll" />
<InputAssemblies Include="..\lib\mcs-unity\mcs\bin\Release\mcs.dll" />
<InputAssemblies Include="packages\ini-parser.2.5.2\lib\net20\INIFileParser.dll" />
</ItemGroup>
2021-05-23 13:58:26 +10:00
<!-- MonoMod for MelonLoader 0.3.0 -->
<ItemGroup Condition="'$(IsMelonLoaderLegacy)'=='true'">
<InputAssemblies Include="..\lib\HarmonyX\Mono.Cecil.dll" />
<InputAssemblies Include="..\lib\HarmonyX\Mono.Cecil.Mdb.dll" />
<InputAssemblies Include="..\lib\HarmonyX\Mono.Cecil.Pdb.dll" />
<InputAssemblies Include="..\lib\HarmonyX\Mono.Cecil.Rocks.dll" />
<InputAssemblies Include="..\lib\HarmonyX\MonoMod.RuntimeDetour.dll" />
<InputAssemblies Include="..\lib\HarmonyX\MonoMod.Utils.dll" />
2021-05-23 13:58:26 +10:00
</ItemGroup>
<!-- Required references for ILRepack -->
<ItemGroup>
<ReferenceFolders Include="..\lib\HarmonyX" />
<ReferenceFolders Include="..\lib\BepInEx.6.IL2CPP\" />
<ReferenceFolders Include="..\lib\BepInEx.6.Mono\" />
2021-05-11 20:23:52 +10:00
<ReferenceFolders Include="..\lib\BepInEx.5\" />
<ReferenceFolders Include="..\lib\MelonLoader\" />
</ItemGroup>
2021-05-23 13:58:26 +10:00
<ILRepack
Parallel="true"
Internalize="true"
DebugInfo="false"
LibraryPath="@(ReferenceFolders)"
InputAssemblies="@(InputAssemblies)"
TargetKind="Dll"
OutputFile="$(OutputPath)$(AssemblyName).dll" />
</Target>
</Project>