I have a solution in VS2010. Under the solution, I have my main WPF application, with all the user interface, a couple of libraries, and a console application that I want to run when I click a button in my WPF application. My solution structure is similar to this:
- Solution
- WPF App [this is my startup project]
- Library
- Another library
- Console application
Now I have done some hunting around, and I've found people looking for how to reference code and classes, and also a solution to this being that I find the path of the executable, and run it as a new process. However, this requires knowing an absolute path, or even a relative path, and I was wondering if that's the only way I can start an application, even though it's in the same solution?