Why are all files write protected and how can I check-in?

前端 未结 4 1108
無奈伤痛
無奈伤痛 2020-12-29 18:05

I currently work with a Team Foundation Server and Visual Studio. Since two days, I keep getting error messages that I can\'t write to files (it seems not to matter which fi

相关标签:
4条回答
  • 2020-12-29 18:34

    It seems that your solution is not connected to the Team Foundation Server.

    I would recommened that you remove the mapping of your workspace, delete all local files of the workspace and then get a fresh version (Get latest version) from the Team Foundation Server.

    To remove mapping you need to open the Source Control Explorer in Visual Studio. Navigate to the Branch you are working on and open the Context Menu (right click on branch). In the menu you select Advanced->Remove mappings....

    In the dialog you can edit or remove the mapping of your workspace. (Note: When you select Remove mapping then will all files in the Local Folder be removed that are controlled by TFS)

    What you also can do is to check the state of your workspace/solution if it is connected to TFS. To do that you need to open the solution in Visual Studio and then open File->SourceControl->Advanced->Change Source Control... in the File Menu of Visual Studio.

    In the Dialog you will see if your Solution and projects are connected to TFS and the server they are connected to

    0 讨论(0)
  • 2020-12-29 18:48

    You will face the same problem when setting your Workspace location to server (which in my case happened somehow magically).

    To change the location to local again open the source control explorer and in the upper part you find a drop down labeled "Workspace". From this drop down choose "Workspaces...". This opens the "Manage Workspaces" dialog where you can select your workspace and click the "Edit" button. In the Edit dialog click the "Advanced" button and you'll see a drop down for Location where you can change it to Local again.

    MSDN provides detailed information on the pros and cons of local and server workspaces.

    0 讨论(0)
  • 2020-12-29 18:49
    1. Go to Solution Explorer
    2. Right click on your solution
    3. Click Go online
    0 讨论(0)
  • 2020-12-29 18:58

    You should have the correspondings local files like in the source control. Go to the local file, right click on it and choose Properties,

    in the opened dialog uncheck the read-only checkbox, click Yes to the question if you want to apply changes to all subfolders and files.

    Hope this is helpful.

    0 讨论(0)
提交回复
热议问题