Skip to content

Commit c1a991e

Browse files
committed
- add Release build events to merge assemblies
1 parent 1c06f79 commit c1a991e

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed

BuildTools/_bin/ILMerge.doc

89 KB
Binary file not shown.

BuildTools/_bin/ILMerge.exe

727 KB
Binary file not shown.

cliPSARC/cliPSARC.csproj

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,11 @@
5858
</ItemGroup>
5959
<Import Project="..\libPSARC-Static\libPSARC-Static.projitems" Label="Shared" />
6060
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
61+
<PropertyGroup>
62+
<PostBuildEvent>if "$(ConfigurationName)"=="Release" (
63+
"$(SolutionDir)BuildTools\_bin\ILMerge.exe" /out:"$(TargetDir)\$(TargetName)-merged.exe" "$(TargetPath)" "$(TargetDir)\zlib.net.dll"
64+
del "$(TargetPath)"
65+
move "$(TargetDir)\$(TargetName)-merged.exe" "$(TargetPath)"
66+
)</PostBuildEvent>
67+
</PropertyGroup>
6168
</Project>

libPSARC-DLL/libPSARC-DLL.csproj

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,11 @@
5353
</ItemGroup>
5454
<Import Project="..\libPSARC-Static\libPSARC-Static.projitems" Label="Shared" />
5555
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
56+
<PropertyGroup>
57+
<PostBuildEvent>if "$(ConfigurationName)"=="Release" (
58+
"$(SolutionDir)BuildTools\_bin\ILMerge.exe" /out:"$(TargetDir)\$(TargetName)-merged.dll" "$(TargetPath)" "$(TargetDir)\zlib.net.dll"
59+
del "$(TargetPath)"
60+
move "$(TargetDir)\$(TargetName)-merged.dll" "$(TargetPath)"
61+
)</PostBuildEvent>
62+
</PropertyGroup>
5663
</Project>

0 commit comments

Comments
 (0)