Skip to content

Commit e3fa29c

Browse files
committed
fix linux compilation
1 parent a5bd41e commit e3fa29c

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

ILRepack.targets

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@
1414
<Exec
1515
Command='"$(TargetDir)\HATDependencies\MonoMod\MonoMod.RuntimeDetour.HookGen.exe" "$(ProjectDir)\Dependencies\%(HookBinaries.Identity)" "$(TargetDir)MMHOOK_%(HookBinaries.Identity)"'
1616
WorkingDirectory="$(TargetDir)\HATDependencies\MonoMod"
17-
/>
17+
Condition="'$(OS)' == 'Windows_NT'" />
18+
19+
<Exec
20+
Command='mono "$(TargetDir)/HATDependencies/MonoMod/MonoMod.RuntimeDetour.HookGen.exe" "$(ProjectDir)/Dependencies/%(HookBinaries.Identity)" "$(TargetDir)MMHOOK_%(HookBinaries.Identity)"'
21+
WorkingDirectory="$(TargetDir)/HATDependencies/MonoMod"
22+
Condition="'$(OS)' != 'Windows_NT'" />
1823

1924
<ItemGroup>
2025
<GeneratedHookBinaries Include="$(TargetDir)MMHOOK_%(HookBinaries.Identity)"/>

0 commit comments

Comments
 (0)