为什么我无法在 VS 2019 中解决此源冲突?

Why can't I resolve this source conflict in VS 2019?

这里似乎没有任何有用的选项来解决从 dev -> main 分支的合并。为什么?我只想覆盖错误更改主分支的人,但我在这里没有任何选择。

如果我右击,我会看到一些选项,但其中 none 个是有用的:

编辑:

Microsoft 发布了针对此问题的修复程序,您需要安装来自以下版本的最新版本:https://visualstudio.microsoft.com/downloads


这是 Visual Studio 2019 年的一个已知问题,您可以阅读线程 here

微软官方的解决方案是:

We have identified the problem and are preparing a fix. Until the fix can be released, here are a few potential workarounds that may help unblock you.

  1. Launch TFVC operations that may trigger conflict resolution (ex: Get Latest) from Source Control Explorer rather than Solution Explorer. In our testing, the bug repros less frequently from Source Control Explorer entrypoints.

  2. Try disabling the "Optimize rendering for screens with different pixel densities" option in Tools->Options->Environment->General.

您可以尝试的另一种解决方法是:

在 "Developer Command Prompt for VS2019" 内,键入命令:

tf resolve

这将打开(从外观上看)与 VS2019 中的相同 window,没有样式,但合并按钮将存在并且可用。

解决完此 window 中的冲突后,关闭它并刷新 VS2019 中的合并冲突 window 以确保 VS 看到更改。

禁用 "Optimize rendering for screens with different pixel densities" 选项对我有用,但我会注意到这里的另一位具有相同确切版本的同事没有该选项。

下个版本修复bug,更新你的vs版本, 要么 转到=> Tools/options/environment/General/ 禁用“针对不同像素密度的屏幕优化渲染”

这是固定的。