visual-studio - 从 Azure DevOps 克隆时如何选择首选的 Visual Studio 版本

标签 visual-studio azure-devops visual-studio-2019 git-clone azure-devops-server-2019

我和我的同事安装了几个版本的 Visual Studio——出于商业原因——我们可能需要保留一段时间。对于一些队友来说,从 Azure DevOps 服务器克隆 git 存储库时,会打开一个不方便的 Visual Studio 版本,从这个 Web UI 开始:
figure showing clone button on azure devops
我们如何确保在克隆时/之后打开首选版本的 VS?作为奖励,是否有任何方法可以配置每个存储库?
到目前为止,我们所做的最好的事情就是遵循这些步骤。但是,它似乎并没有始终如一地更新每个用户的偏好。特别是,如果团队成员已经针对早期版本(例如 VS 2015、VS 2017)至少克隆了一次,我们似乎有时间将这种偏好更新到 VS 2019 以坚持下去。

  • 在系统设置中打开“默认应用程序”
  • 选择“按协议(protocol)选择默认应用”
  • 滚动到“Microsoft Visual Studio Web 协议(protocol)处理程序选择器”
  • 将处理程序更改为 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 中是无法实现的。

    作为一种解决方法,同意 詹姆斯 Z ,您可以在特定版本的 Visual Studio 中执行克隆,而不是从 azure devops 的 Web UI 执行克隆,因此您不必担心默认版本带来的麻烦。另外,vs2017和vs2019的MS VS Web Protocol Handler Selector图标看起来几乎一样,也容易混淆。

    根据你的需要打开特定版本的visual studio,在中连接你的项目团队资源管理器 ,然后选择要克隆的仓库。

    enter image description here

    关于visual-studio - 从 Azure DevOps 克隆时如何选择首选的 Visual Studio 版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59584378/

    相关文章:

    C# 错误 : Unassigned local variable error when using "switch"?

    vb.net - 当我安装我编写的应用程序时未知的发布者?

    visual-studio - 如何在 VS 2005 中向 QuickWatch 窗口添加命名空间

    azure - 如何在Azure管道中为特定分支启用批处理

    c# - 如何将 WPF 项添加到 VS2019 中的 C# 类库项目中?

    visual-studio-2019 - 如何在 Visual Studio 2019 中自动将分号添加到行尾

    c++ - 使用 std::wofstream 写入文件。该文件仍然是空的

    azure - 如何获取Azure DevOps服务连接ID

    .net-core - Azure Devops - dotnetcore 构建始终失败 - 进程无法启动

    debugging - 是否可以在即时窗口中执行汇编语言指令