batch file - Visual Studio Hangs After Adding Post-Build-Event -
i following this tutorial explains how attached post-build events project.
this .bat
file (tried , without d:
rem
d out):
cmd echo parameter=%1 cd %1 rem d: copy wpffiledeleter.exe temp.exe "..\..\ilmerge.exe" /out:"wpffiledeleter.exe" "temp.exe" "microsoft.windowsapicodepack.dll" "microsoft.windowsapicodepack.extendedlinguisticservices.dll" "microsoft.windowsapicodepack.sensors.dll" "microsoft.windowsapicodepack.shell.dll" "microsoft.windowsapicodepack.shellextensions.dll" del temp.exe
and added ilmerge.exe.config
per tutorial (i getting unresolved assembly reference not allowed
error):
<configuration> <startup uselegacyv2runtimeactivationpolicy="true"> <requiredruntime safemode="true" imageversion="v4.0.30319" version="v4.0.30319"/> </startup> </configuration>
but when build project in vs hangs message in output
:
1>------ rebuild started: project: wpffiledeleter, configuration: debug cpu ------
i can see files have been copied bin/debug
, such .dlls
specified , temp.exe
, wpffiledeleter.exe
s cannot run has not been merged properly.
my question how can debug issue? there way of outputting results of ilmerge or build process can see going wrong?
i able resolve specifying targetframework
when calling ilmerge
in batch file:
"..\..\ilmerge.exe" /out:"wpffiledeleter.exe" /targetplatform:"v4" "temp.exe" "microsoft.windowsapicodepack.dll" "microsoft.windowsapicodepack.extendedlinguisticservices.dll" "microsoft.windowsapicodepack.sensors.dll" "microsoft.windowsapicodepack.shell.dll" "microsoft.windowsapicodepack.shellextensions.dll"
Comments
Post a Comment