ILMerge example

Date: 2021-01-26

Merge C#/.net assemblies

@echo off
set ilmerge=%~dp0\ILMerge.exe
pushd bin\Release
@echo on
%ilmerge% /targetplatform:v4,"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2" /internalize:"NewtonSoft.Json.dll" /out:"UnicontaMultivers.Merged.dll" "UnicontaMultivers.dll" "NewtonSoft.Json.dll" "MsgReader.dll" "OpenMcdf.dll" "RtfPipe.dll"
@echo off
popd
@echo off
set ilmerge="%~dp0\ILMerge.exe"
set outdll="%~dp0\UnicontaMultivers.dll"
pushd "%~dp0\bin\Release"
set includeDlls= "UnicontaMultivers.dll" "NewtonSoft.Json.dll" "DNA.Multivers.Connector.dll" "DNA.Twinfield.Connector.dll"
echo The current dir is: %CD%
@echo on
%ilmerge% /targetplatform:v4,"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2" /out:%outdll% /internalize:"NewtonSoft.Json.dll" %includeDlls%  /closed
::  "MsgReader.dll" "OpenMcdf.dll" "RtfPipe.dll" 
@echo off
popd
pause
44870cookie-checkILMerge example