【问题标题】:VS2017 15.7.5 doesn't automatically check out filesVS2017 15.7.5 不会自动检出文件
【发布时间】:2018-07-31 11:19:32
【问题描述】:

我最近注意到,当我进行需要更改文件的更改时,VS2017 (Professional) 开始产生一个弹出窗口:

The file <filename>, which you attempted to edit, is read-only on disk.
Would you like to make the file writeable or edit it anyway?

如果我取消此操作,我会收到一条消息:

The file '<filename>' needs to be checked out before it can be edited.
The file was not checked out automatically because you have disabled automatic checkout
when files are edited in the Source Control options page.

Source_Control->Plug-in_Selection 设置为Visual Studio Team Foundation Server;我没有更改 Source_Control->Environment 下的 Options;保存和编辑都设置为Check out automatically

据我所知,除了最近从 15.7.4 更新到 15.7.5 之外,我没有更改任何设置。其他地方是否有一些设置会影响这一点?

注意,我安装的 VS2017 Pro Preview 15.8.0 preview 5.0 做同样的事情,并且以管理员身份运行 VS2017 并没有修复它。


更新:

Visual Studio 2015 在同一个本地工作区中签出相同的文件没有问题。也就是说,如果我在 VS2017 中打开一个解决方案,编辑一个文件并保存它,我会收到上述消息。如果我随后取消编辑并在 VS2015 中对同一文件尝试相同的操作,则该文件将被签出。因此问题出在 VS2017 而不是文件本身。

【问题讨论】:

    标签: visual-studio tfs visual-studio-2017


    【解决方案1】:

    好的。进一步搜索后,我找到了指向答案in this answer 的指针。不知何故,我的 VS2017 实例已从 TFS 服务器脱机。菜单选项 File->Source_Control->Advanced->Go_Online 解决了问题。

    【讨论】:

      【解决方案2】:

      我的解决方案已与源代码管理服务器解除绑定。

      要解决我使用菜单选项文件->源代码管理->高级->更改源代码控制...选择没有服务器名称或服务器绑定的项目或解决方案。点击绑定。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2018-08-29
        • 2019-04-15
        • 1970-01-01
        • 2019-07-28
        • 2019-10-24
        • 1970-01-01
        • 1970-01-01
        • 2017-04-16
        相关资源
        最近更新 更多