Using ILMerge in a post build step

Reference : http://geekswithblogs.net/mapfel/archive/2008/11/01/126469.aspx

I want automate the ILMerge process on build time.
I found this article and it works for me with minimal modification.

This is my ilmerge.bat file content

ECHO parameter=%1
CD %1
D:
COPY testLib.dll temp.dll
"C:\Program Files\Microsoft\ILMerge\ILMerge.exe" /out:testlib2.dll testLib.dll VL.dll
DEL temp.dll


on project configuration, build event just add below text in post-build event

"$(TargetDir)ILMerge.bat" "$(TargetDir)"

0 comments:

 
Copyright © peyotest