Unable to start program ‘G:\Program Files\Epic Games\4.7\Engine\Intermediate\Build\Unused\UE4.exe’. Which makes sense since that path doesn’t exist. But how do I correct MSVS to use the correct path? Also, what is the correct executable to use? Because there is no UE4.exe in my UE4 install directory. Is this supposed to be the UnrealEngineLauncher or EpicGamesLauncher?
To fix the issue, you have to right click the game solution from your solution explorer and select the option “Set as StartUp Project” and that should highlight the game solution. Cntrl-F5 will then work.
For me the solutions above didn’t help. In the “Set Startup Project” option I had to set the radio button to “Multiple startup projects” and change the order of projects so that ue4 project is above my own project. Now set the action for both projects to “start”. As described above in order to access this menu, you have to right click your solution within visual studio and then select the option “Set Startup Project”.
However I still get the error that the ue4.exe could not be found. But still the engine launches and I can debug the project.
Thanks for posting this solution. I was trying out different editors to see which I preferred (Visual Studio community 2017 vs Visual Studio Code vs CLion) and through it all when I came back to VS2017 I had the same “Unable to start program…” message. I noticed the compile times were almost nothing, which I knew was wrong but due to my lack of experience with VS I didn’t know why. Through it all someplace along the way the UE4 project was bolded and set as the StartUp Project in the Solution Explorer. Your fix got me back on track!
Which solution file do we have to Startup Project ? There are two , one with the name “UE4” and the other has the name of my project . When I select the one with UE4 , its shows couldnt run UE4.exe , and when I set my game name one , VA plugin just scans a lot of things and things hang up