Adding Existing Source Files
Once a project has been created, files that are already in existence can be added.
Care should be taken to only add resources or Fortran source files to a Fortran
project. If object files or libraries that are not built within the project are
linked with the project, they should be added in the "Linker|Additional Linker Options"
property.
To add existing source file(s) to a project:
-
Right-click
on the project name in the Solution Explorer and select "Add" and "Existing Item"
from the context menu:

- Navigate to the folder and select the desired file(s).
- If you want the file(s) copied to the project folder, click Add. Subsequent
edits of the project item in Visual Studio will change the copied file only.
- If you wish the file(s) to remain in their original location, click "Add As
Link" on the drop-down next to the Add button. Subsequent edits of the project
item in
Visual Studio will change the original file.
Alternatively, you may select the "Add Existing Item" option from the Project or
File pull down menu.