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 as a Reference.
To add existing source file(s) to a project:
- Select Project > Add Existing Item
- 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.
How To: Migrate Existing Code Into Visual Studio