Partager via


Sharing Files Between Source-Controlled Projects

You can set up a file so that it's a member of two or more source-controlled projects at the same time. This is useful if you use common files, such as standard programs, libraries, or dialog boxes, in more than one project. When you share files between projects, changes you check in to a file are reflected in all the projects that share the file.

The specific method for sharing files between source-controlled projects depends on your source control software. If file sharing options aren't supported by your source control provider, file sharing commands will not be available on the menu.

The first step of the following procedure applies to all source control systems that support file sharing. The subsequent steps might differ, depending on your source control software.

To share files between controlled projects

  1. From the Project menu, choose Source Control and then choose Share Files.

  2. In the dialog box that appears, indicate what files you want to share with your current project, and what project they currently belong to.

    The specific options available from this menu command depend on your source control system. For details, choose Help in the Share dialog box or refer to the documentation for your source control system.

    Tip   In Microsoft Visual SourceSafe, you can see what projects a file is a member of by using the Project Properties command and choosing the Links tab. If you add a project to Visual SourceSafe, for proper mapping to the project, all files contained in the project must be in the project directory or path.

See Also

Removing Files from a Source-Controlled Project | Management of Files in a Source-Controlled Project | Developing in Teams | Management of Visual FoxPro Projects Under Source Control