I'm using ILMerge in my post build step.
For interoperability reason I would like use ILMerge relative path.
How can I set the path environment variable accessible from my post build step?
views:
31answers:
1
+2
A:
The default ILMerge install path isn't relative to anything. If you want to add it to the PATH environment variable then write this in your postbuild event:
set path = %path%;$(programfiles)\microsoft\ilmerge
Hans Passant
2010-04-06 17:54:59
This would be the trick to my current project. Isn't there a way to set the path one time for all my project?
tinmaru
2010-04-08 10:42:59
Change your system environment. Control Panel + System + Advanced. Not recommended if you like your project to build on other machines without hassle.
Hans Passant
2010-04-08 10:57:33
I accept your post but I don't agree with you: The build environment is a per-machine configuration. If I want to build my app on another machine I should install ILMerge then add it to the path. Your first proposition leads to add ILMerge path to all your current projects.
tinmaru
2010-04-08 14:52:46
No need to agree. I just hand out the bullets, you have to pull the trigger yourself.
Hans Passant
2010-04-08 14:55:27