We have several non-.NET exes (e. g. PhantomJs) which we execute from our .NET web applications via the Process
class.
I'd like to wrap these exes into NuGet packages so that they can be reliably located in different environments (web apps, console apps, and unit tests) without having to pre-place each potentially required version in some magic location on the each machine.
Is there a recommended approach for doing this in NuGet?
One way that works but seems kind of clunky is to embed the EXE as a resource in a wrapper .NET dll, and then extract it to the file system at runtime. I'm wondering if there's a simpler approach.