Pete Stensønes
Pete Stensønes

Reputation: 5665

How do you dissasociate a single file in a VS2010 project which is under source control from source control iteself?

We have a project (C#) which has been added to source control (TFS 2010), however one of the project files is anauto generated one and as such we dont want it under source control.

Is there a way to remove the source control association for this single file in the project?

Please note the autogenerated file is made from a custom XML document using an internal standalone tool. Whilst I appreciate a long term solution to this issue would be to not have the file linked to the project, but to include the source XML document and have it associated with an appropriate custom tool to generate the C# file at build time. Sadly creating said custom tool is not going to happen in my immediate future hence the query about dissacociating the generated file that is in the project from the projects TFS source control.

Upvotes: 0

Views: 454

Answers (1)

Mike Veigel
Mike Veigel

Reputation: 3815

Open up the project and select the file.

On the VS menu go to: File -> Source Control -> Exclude FILE_NAME From Source Control

Upvotes: 1

Related Questions