5.10.2.2 Add Files Outside the Project Folder

When adding a source file that is not in the project folder, add the file (store the path) as Relative. This creates an external folder (_ext) so the project can find the file when it is building.

To make use of navigation features such as the //TODO action item and file context menus, you must tell the project where the files are located. To do this:

  1. In the Projects window, right click on the project name and select Properties.
  2. Under Categories, click General.
  3. Next to Source Folders, click Add.
  4. Browse to the path of the external file(s) you have added to the project. Click the Select button.
  5. Click Apply or OK. Then rebuild the project.

When you import an MPLAB IDE v8 project, the source files are not in the project folder. Use File > Import > MPLAB IDE v8 to automatically import the files.

Figure 5-22. Specify External File Path