【发布时间】:2019-12-12 18:43:33
【问题描述】:
我正在尝试使用 VS 2017 将我的项目连接到 Azure DevOps。 原因:从本地 DevOps 迁移到 Azure-DevOps。 错误:TF30063:您无权访问https://dev.azure.com/MyProject 登录:两因素身份验证。 如何使用 VS 2017 在 Azure DevOps 中为我的项目创建测试计划?
我已经在 VS 2017 中连接了 Azure-DevOps,并且可以使用浏览器(Visual Studio、View->Other Windows->Web Browser)查看我的项目。但是使用代码我无法访问
NetworkCredential netCred = new NetworkCredential("username@mail.com", "password");
BasicAuthCredential basicCred = new BasicAuthCredential(netCred);
TfsClientCredentials tfsCred = new TfsClientCredentials(basicCred);
tfsCred.AllowInteractive = false;
TfsTeamProjectCollection tpc = new TfsTeamProjectCollection(new Uri(_newServer), tfsCred);
tpc.EnsureAuthenticated();
tpc.Authenticate();
Log in with two factor authentication
【问题讨论】:
-
我确实清理了缓存 TFS 文件夹
标签: c# tfs visual-studio-2017 azure-devops