"UnrealBuildTool Exception: ERROR: Couldn't find platform name." and the visual studio start debugging button turned into only a Start button

Now that I try to start the program from visual studio I get this error:
UnrealBuildTool Exception: ERROR: Couldn’t find platform name.
The output when running.

I can rebuild and build without a problem, but whenever I try to run it I get the error linked above. It also does not matter what I try. Hit F5, click the start button, go into the debug menu and select start debugging, it all ends the same way. It does not matter what configuration I choose either as all of these and even all of these modes fail.

I also noticed that the “Start Debugging” button has changed into a “Start” button.

After talking to the other guy who is working on this with me I have come to the conclusion that the contents of the Intermediate folder was copied somewhere, had its contents changed or deleted both manually and via the editor, and restored from the copied files later. However, this should not have anything to do with it as the wiki page says it is just a temp folder.

I am at a loss as to why these changes has occurred and I will be ever grateful if anyone have any information to share regarding this problem.

I have no idea why the Visual Studio button changed nor why I am getting that error.

EDIT: This is what pops up for a split second when i try to run it. http://puu.sh/gRJMZ/0bb128d74f.png
COuld this be the problem?
http://puu.sh/gRKpg/1ff29e0fde.png

Edit2:
The problem was that for some reason the Unreal Build tool was selected to be run as the last picture above shows. When I changed that to select the project name instead it worked out just fine.