tags:

views:

31

answers:

1

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?

+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
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
Change your system environment. Control Panel + System + Advanced. Not recommended if you like your project to build on other machines without hassle.
Hans Passant
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
No need to agree. I just hand out the bullets, you have to pull the trigger yourself.
Hans Passant