I have an exe application with i's required file and I've imported them into my VS C# project. I need to start the .exe process which is fine but I can't seem to get the path correct. Is there a way to reference local paths such as in html?
My visual studio solution structure:
/RendererProxy /Application /COMTEST.exe /core /Program.cs
I'm trying to get from Program.cs to COMTEST.exe basically.
preguntado el 12 de junio de 14 a las 10:06
String exePath = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location),"AIRApplication", "COMTEST.exe");
The above code resolved 1/2 of the issue. The other 1/2 was that the exe was not being copied to the debug folder. Updating the 'Copy to Output Directory' option resolved this.