You need to pay attention to where VS is creating the new source file, the default location for new files you create in VS is the location of the VS project file. The VS project files are generated in the Intermediate directory, but all source files must be placed in sub-directory within the Source directory. So when creating a new source file in VS you need to change the destination directory.