-1

I am having some trouble with TFS:

  1. I have ignore rules for certain files. For example:

\Build\Scripts*.sum

It does not seem to recognize this. But, if I exclude these files in the Visual Studio UI, it remembers that I excluded them for some time.Then I lose connectivity and I have to re-exclude them. Why doesnt the tfignore file seem to be working. This leads to:

  1. I routinely lose the ability to connect to TFS. Ill be moving along happily working. then Ill go and check in some code and I will get the error that I do not have access to TFS. If I restart Visual Studio, I can then successfully connect and check in code. Things will be fine for a few hours, and then it will happen again. Why do I lose the ability to connect? And why does restarting fix it?
Ethan Schofer
  • 1,718
  • 5
  • 26
  • 55
  • Hi Ethan, any update on this case, did you get a chance to implement the solution that I suggested? Were you able to resolve? – PatrickLu-MSFT Oct 02 '19 at 09:24

2 Answers2

0
  1. First make sure you were using the correctly .tfignore file.** This file does not have any suffix. One way to create it, suggest you to rename a new.txt file with "tfignore." It will auto change to right .tfignore file.

You can also use the auto automatically generated .tfignore file, follow below steps in my answer here.

More detail info about the .tfignore file please refer this tutorial.

Note: This .tfignore file will not affect with those files already in source control. You need to remove them from source control first. Also make sure your .tfignore files have checked in source control.

  1. That sounds wired. get the error that I do not have access to TFS what's the detail error here? If restart Visual Studio, can then successfully connect and check in code. It shouldn't be a permission related issue.

One possibility is network related, double check and confirm if there is any instability of your network environment. If you are behind VPN, try to connect without VPN.

Since Restart Visual Studio fixed the issue, it also may related to cache. Try to clear TFS and VS cache, which may do the trick.

PatrickLu-MSFT
  • 49,478
  • 5
  • 35
  • 62
0

The issue was that TFS thought these items had been "added" although that was not entirely clear from Visual Studio UI. I had to go to the Source Control Explorer and look at the folder where these files were. They were listed as 'add' which is how I figured this out. I never explicitly added these files. I had to right click on these items and remove them.

Ethan Schofer
  • 1,718
  • 5
  • 26
  • 55