ILRepack.targets 858 B

1234567891011121314151617181920212223242526
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  3. <Target Name="ILRepacker" AfterTargets="Build" Condition="'$(Configuration)' == 'Release'">
  4. <Copy SourceFiles="$(OutputPath)\$(AssemblyName).exe" DestinationFiles="$(OutputPath)\$(AssemblyName)1.exe"/>
  5. <ItemGroup>
  6. <InputAssemblies Include="$(OutputPath)\$(AssemblyName)1.exe" />
  7. <InputAssemblies Include="$(OutputPath)\Mono.Cecil.dll" />
  8. </ItemGroup>
  9. <ILRepack
  10. Parallel="false"
  11. Internalize="true"
  12. DebugInfo="true"
  13. InputAssemblies="@(InputAssemblies)"
  14. TargetKind="Exe"
  15. TargetPlatformVersion="v2"
  16. OutputFile="$(OutputPath)\$(AssemblyName).exe" />
  17. <Delete Files="@(InputAssemblies)" />
  18. <Delete Files="$(OutputPath)\BepInEx.Bootstrap.dll" />
  19. </Target>
  20. </Project>