Exclude csproj.user file from Visual Studio TFS Check in

7.4k Views Asked by At

I am working on a solution where we're checking in code. Each time there is a check in, it checks in a csproj.user which reflects current user's config. How can we make a rule to not check in this file? We're using Visual Studio Team Services (was Visual Studio Online) with TFVC as our source control.

1

There are 1 best solutions below

6
On

You can include *.user in .tfignore file (.gitignore for Git), then delete these files from version control server and check in changes if .user file has already been added to version control server.

Create .ignored file if you are using TFVC, you can refer to this article. (For Git, there is .gitignore file)

On the other hand, there is an similar issue.