I recently installed Microsoft Visual Studio 2017. Whenever I try to compile my C code I get an error that says,
Unable to start program.
"c:\users\myname\source\repos\ConsoleApplication2\Debug\ConsoleApplication2.exe'.
The system cannot find the file specified.
I wrote my code by choosing, file > new project > Windows Console Application > source files (right-click) > add > new item > filename.c
For compiling I am using Local Windows Debugger and compiling as C code(/TC) from the advanced properties option.
How can I make my program work? My code is right because it compiles in another IDE perfectly.