Home Page (Projects) | Overviews | How Do I... Topics | NMAKE Reference
When you add a file to a project, you add the file to all configurations for that project. For instance, if you have a project named MyProject, with Debug and Release configurations, adding a file adds it to both those project configurations.
If you add files from directories on a different drive than the project, Visual C++ uses absolute paths in the filenames for those files in the project's .dsp file. Because of the absolute paths, it is difficult to share the project (.dsp) file. Other developers in your group may have other drive names.
To support sharing files outside the project directory, you can use the Persist As field in the source file's property page. In the Persist As field, put in a replacement path for the file that will be persisted ("preserved") in the project file.
For example:
This requires all users of the project to maintain the same directory structure that you use for the project.
-or-
Note: The NMAKE utility requires that you use upper case for the environment variable names.
Move or copy files from one project to another
Note You can also use the shortcut menu from FileView to add files more quickly.
To move or copy files from one workspace to another
To remove files from a project