【发布时间】: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