从 Azure DevOps 克隆时如何选择首选 Visual Studio 版本

How To Choose Preferred Visual Studio Version When Cloning From Azure DevOps

我和我的同事安装了多个 Visual Studio 版本,出于业务原因,我们可能需要保留一段时间。对于某些队友,从 Azure DevOps 服务器克隆 git 存储库时,将打开一个不方便的 Visual Studio 版本,从该网站开始 UI:

如何保证首选版本的VS开启upon/after克隆?作为奖励,是否有任何方法可以针对每个存储库进行配置?

到目前为止,我们最好的办法就是遵循这些步骤。但是,它似乎并没有始终如一地更新每个用户的偏好。特别是,如果团队成员已经针对早期版本(例如 VS 2015、VS 2017)克隆了至少一次,我们似乎有一段时间将这种偏好更新到 VS 2019 以坚持下去。

  1. 在系统设置中打开“默认应用”
  2. Select“按协议选择默认应用程序”
  3. 滚动到“Microsoft Visual Studio Web 协议处理程序 Select 或”
  4. 将处理程序更改为 Visual Studio 2019

Note: Our machines have MS VS Web Protocol Handler Selector listed twice. We have experimented with setting both or either without success. Any suggestions why we're seeing the protocol selector twice may also help.

would there be any way to configure this per repository?

对于这个问题,恐怕目前在azure devops中是做不到的。

作为解决方法,同意 James Z,您可以在特定版本的 visual studio 中执行克隆,而不是从 Azure 的网络 UI devops,不用担心默认版本带来的麻烦。另外,vs2017和vs2019的MS VS Web Protocol Handler Selector图标看起来几乎一样,也很容易混淆。

根据需要打开特定版本的visual studio,在Team Explorer中连接到您的项目,select要克隆的repo。