Try addind an already existing source file to project, it has to have a .pbp extension. There a Copy checkbox in the Add File dialog, tick that to get a copy of your original source file in the MPLABX Project directory.

/Henrik.