C++ Compile Error "Couldn't find target rules file for target"

Try deleting your binaries and intermediate\build folders. Oh, and never compile in the editor.