Skip to content

Commit

Permalink
tying to use another ILMerge tool and still not working.
Browse files Browse the repository at this point in the history
  • Loading branch information
andy840119 committed Feb 21, 2022
1 parent 08e1487 commit e26cfa3
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 29 deletions.
32 changes: 32 additions & 0 deletions osu.Game.Rulesets.Karaoke/ILRepack.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8" ?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="ILRepacker" AfterTargets="Build" Condition="'$(Configuration)' == 'Release'">
<ItemGroup>
<InputAssemblies Include="$(OutputPath)\LanguageDetection.dll" />
<InputAssemblies Include="$(OutputPath)\Octokit.dll" />
<InputAssemblies Include="$(OutputPath)\osu.Framework.KaraokeFont.dll" />
<InputAssemblies Include="$(OutputPath)\osu.Framework.Microphone.dll" />
<InputAssemblies Include="$(OutputPath)\NWaves.dll" />
<InputAssemblies Include="$(OutputPath)\LyricMaker.dll" />
<InputAssemblies Include="$(OutputPath)\NicoKaraParser.dll" />
<InputAssemblies Include="$(OutputPath)\SixLabors.Fonts.dll" />
<InputAssemblies Include="$(OutputPath)\SixLabors.ImageSharp.Drawing.dll" />
<InputAssemblies Include="$(OutputPath)\WanaKanaSharp.dll" />
<InputAssemblies Include="$(OutputPath)\Zipangu.dll" />
</ItemGroup>

<ItemGroup>
<InternalizeExcludeAssemblies Include="osu.Game.dll" />
<InternalizeExcludeAssemblies Include="osu.Framework.dll" />
</ItemGroup>

<ILRepack
Parallel="true"
Internalize="false"
InternalizeExclude="@(InternalizeExcludeAssemblies)"
InputAssemblies="@(InputAssemblies)"
TargetKind="Dll"
OutputFile="$(OutputPath)\$(AssemblyName).Packed.dll"
/>
</Target>
</Project>
31 changes: 2 additions & 29 deletions osu.Game.Rulesets.Karaoke/osu.Game.Rulesets.Karaoke.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup Label="Project">
<TargetFramework>netstandard2.1</TargetFramework>
<AssemblyTitle>osu.Game.Rulesets.Karaoke</AssemblyTitle>
Expand Down Expand Up @@ -36,32 +36,5 @@
<PropertyGroup Condition=" '$(Configuration)'=='Release' ">
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
</PropertyGroup>

<Target Name="ILRepack" AfterTargets="Build" Condition=" '$(Configuration)'=='Release' ">
<PropertyGroup>
<WorkingDirectory>$(MSBuildThisFileDirectory)bin\$(Configuration)\$(TargetFramework)</WorkingDirectory>
</PropertyGroup>

<ItemGroup>
<InputAssemblies Include="LanguageDetection.dll" />
<InputAssemblies Include="Octokit.dll" />
<InputAssemblies Include="osu.Framework.KaraokeFont.dll" />
<InputAssemblies Include="osu.Framework.Microphone.dll" />
<InputAssemblies Include="NWaves.dll" />
<InputAssemblies Include="LyricMaker.dll" />
<InputAssemblies Include="NicoKaraParser.dll" />
<InputAssemblies Include="SixLabors.Fonts.dll" />
<InputAssemblies Include="SixLabors.ImageSharp.Drawing.dll" />
<InputAssemblies Include="WanaKanaSharp.dll" />
<InputAssemblies Include="Zipangu.dll" />
</ItemGroup>

<ItemGroup>
<InternalizeExcludeAssemblies Include="osu.Game.dll" />
<InternalizeExcludeAssemblies Include="osu.Framework.dll" />
</ItemGroup>

<ILRepack OutputType="$(OutputType)" MainAssembly="$(AssemblyName).dll" OutputAssembly="$(AssemblyName).Packed.dll" InputAssemblies="@(InputAssemblies)" InternalizeExcludeAssemblies="@(InternalizeExcludeAssemblies)" WorkingDirectory="$(WorkingDirectory)" />

</Target>

</Project>

0 comments on commit e26cfa3

Please sign in to comment.