C# class library using an external executable
Posted on 2011-09-15
I have a C# class library that uses an external executable (launching it through Process.Start).
I want the executable to be automatically copied to the bin folder of any application using this library, in the same manner that any DLL used by my library is copied to the using applications' bin folder, (without the need of adding a post build script to each of these applications).
The executable is currently part of the class library project, and is defined as "Resource" and "Copy if Newer".
I'm using VS2008.
Any idea if and how this can be accomplished.
Thanks in advance.