How to: Exclude Files from Source Control

If the solution you are working on contains files that do not require source control services, you can use the Exclude from Source Control command to exclude the file from source control. When you do this, the file remains in the Microsoft Visual SourceSafe database, but it is no longer checked in or out with the project.

You should use the Exclude from Source Control command only on generated files. A generated file is one that can be entirely re-created by Microsoft SQL Server Management Studio based on the contents of another file in the solution.

To exclude a file from source control

  1. In Solution Explorer, select the file to exclude.

  2. On the File menu, point to Source Control, and then click Exclude <file name> from Source Control.