Browse Source

Fix ILRepack configuration for patcher

ghorsington 5 years ago
parent
commit
ed7ce9d1b9
1 changed files with 4 additions and 1 deletions
  1. 4 1
      BepInEx.Patcher/ILRepack.targets

+ 4 - 1
BepInEx.Patcher/ILRepack.targets

@@ -3,12 +3,15 @@
 <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
   <Target Name="ILRepacker" AfterTargets="Build" Condition="'$(Configuration)' == 'Release'">
 
+    <Copy SourceFiles="$(OutputPath)\$(AssemblyName).exe" DestinationFiles="$(OutputPath)\$(AssemblyName)1.exe"/>
+
     <ItemGroup>
+      <InputAssemblies Include="$(OutputPath)\$(AssemblyName)1.exe" />
       <InputAssemblies Include="$(OutputPath)\Mono.Cecil.dll" />
     </ItemGroup>
 
     <ILRepack
-      Parallel="true"
+      Parallel="false"
       Internalize="true"
       DebugInfo="true"
       InputAssemblies="@(InputAssemblies)"