11<?xml version =" 1.0" encoding =" utf-8" ?>
22<Project xmlns =" http://schemas.microsoft.com/developer/msbuild/2003" >
33
4- <Target Name =" BuildHookBinaries" AfterTargets =" VerifyModReferences" Condition =" !Exists('$(TargetDir)FEZ.Hooks.dll')" >
4+ <Target Name =" BuildHookBinaries" AfterTargets =" VerifyModReferences" Condition =" !Exists('$(TargetDir)Packed\ FEZ.Hooks.dll')" >
55
6+ <MakeDir Directories =" $(TargetDir)Packed\" />
7+
68 <ItemGroup >
79 <HookBinaries Include =" FEZ.exe" />
810 <HookBinaries Include =" FezEngine.dll" />
911 <HookBinaries Include =" FNA.dll" />
1012 </ItemGroup >
1113
12- <Exec Command =' "$(MonoModDir)\MonoMod.RuntimeDetour.HookGen.exe" "$(FezDir)\%(HookBinaries.Identity)" "$(TargetDir)MMHOOK_%(HookBinaries.Identity)"' WorkingDirectory =" $(MonoModDir)" />
14+ <Exec Command =' "$(MonoModDir)\MonoMod.RuntimeDetour.HookGen.exe" "$(FezDir)\%(HookBinaries.Identity)" "$(TargetDir)Packed\ MMHOOK_%(HookBinaries.Identity)"' WorkingDirectory =" $(MonoModDir)" />
1315
1416 <ItemGroup >
15- <GeneratedHookBinaries Include =" $(TargetDir)MMHOOK_%(HookBinaries.Identity)" />
17+ <GeneratedHookBinaries Include =" $(TargetDir)Packed\ MMHOOK_%(HookBinaries.Identity)" />
1618 </ItemGroup >
1719
1820 <ILRepack
1921 Parallel = " True"
2022 InputAssemblies = " @(GeneratedHookBinaries)"
2123 TargetKind = " Dll"
22- OutputFile = " $(TargetDir)FEZ.Hooks.dll" />
24+ OutputFile = " $(TargetDir)Packed\ FEZ.Hooks.dll" />
2325
2426 <Delete Files =" @(GeneratedHookBinaries)" />
2527 </Target >
2628
29+ <!-- Packing all assemblies other than HAT as Repacker, because for whatever reason the game freaks out when it's not done-->
30+ <!-- Also in the future Repacker might not be the only dependency, so keep in mind this sucks and needs to be changed-->
31+ <Target Name =" RepackerRepack" BeforeTargets =" PrepareHat" >
32+ <ItemGroup >
33+ <InputAssemblies Include =" $(OutputPath)FEZRepacker.Core.dll" />
34+ <InputAssemblies Include =" $(OutputPath)*.dll" Exclude =" $(OutputPath)$(TargetName)$(TargetExt);$(OutputPath)FEZRepacker.Core.dll" />
35+ </ItemGroup >
36+
37+ <ILRepack
38+ Parallel =" true"
39+ InputAssemblies =" @(InputAssemblies)"
40+ TargetKind =" SameAsPrimaryAssembly"
41+ OutputFile =" $(TargetDir)Packed\FEZRepacker.Core.dll"
42+ />
43+ </Target >
44+
2745</Project >
0 commit comments