All project files get read only attribute after loading from TFS 2010

I am using Team Foundation Server with VS 2010. I encountered a problem when when mapping a new folder to download code from TFS after downloading all the code, all files / folders in the new folder are automatically read the attribute, and I must delete this attribute explicitly after I can build another solution that gives me an "Access denied" error. Is there any TFS setting that makes my project files read-only.

+4
source share
1 answer

Not with TFS 2010, it is called "Local Workspaces" and is available since TFS 2012 and works like Subversion.

What you do by removing the read-only flag is fighting TFS. What needs to be done is to check in the file before editing. If you use Visual Studio to edit solutions / projects, this will happen automatically if you have configured the binding settings . If you are editing files outside of Visual Studio, you can check:

  • Using Source Control Explorer in Visual Studio.
  • Using Team Foundation Server Power Toys to install a shell extension on Windows so you can right-click.
  • Opening a file in Visual Studio and using it as a text editor.
  • Using command line tf checkout .

By removing the read-only flag, you allow the file to be edited, but do not instruct TFS that you changed it, so TFS will not know to check it when the time comes. TFS does not scan your workspace for changes such as Subversion.

+8
source

Source: https://habr.com/ru/post/1494494/


All Articles