Visual Studio 2019 - Azure DevOps 的旧凭据已缓存,我们无法摆脱它 [英] Visual Studio 2019 - old credential for Azure DevOps is cached and we can't get rid of it

查看:55
本文介绍了Visual Studio 2019 - Azure DevOps 的旧凭据已缓存,我们无法摆脱它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们将 Visual Studio 2019 与 Azure DevOps 和 Git 存储库一起用于源代码控制.我们的登录名是来自 Azure Active Directory 的身份.

在上周末,我们从一个 Office 365 租户迁移到了一个新的 Office 365 租户,随之而来的是一个新的 Azure Active Directory.我们将自定义域名转移给新租户,现在与旧租户相同.

现在的问题是 Visual Studio 2019 - 它似乎正在缓存我们的旧登录.我们已经卸载并重新安装了 VS,但似乎这样做并没有真正清除所有内容.看起来我们的旧凭据仍在缓存中.

我非常确定这是一个 Visual Studio 特定问题的原因是我们都能够在 visualstudio.com 上登录到我们的存储库,我们可以看到迁移前的所有内容(我们做了在 DevOps 中正确迁移 Azure Active Directory - 成功).此外,当您从 Visual Studio 中浏览到我们的存储库时,它会将我们带到一个完全不同的链接和空存储库.

有谁知道我们如何从 Visual Studio 中彻底清除所有帐户缓存?卸载 VS 显然不行.

解决方案

我们如何从 Visual Studio 中彻底清除所有帐户缓存?

我们可以从以下几个方面清除缓存:

  1. Clean Credential Manager 缓存:转到 Control Panel-> 单击 User Accounts-> 单击 Credential Manager-> 转到Windows 凭据,单击从保管库中删除链接以删除存储的 Azure DevOps 凭据.现在,当您登录 Visual Studio 时,系统会要求您提供凭据以连接 Azure DevOps.

  2. 清理团队基础缓存:文件夹路径为:C:\Users\username(Team Explorer 用户名)\AppData\Local\Microsoft\Team Foundation\8.0\Cache>

  3. 在浏览器中删除 cookie:在 Internet Explorer 中注销帐户,然后清除所有 Internet Explorer cookie 和存储的密码,如本博客所述:在 Visual Studio 2019 中更改 Azure devops 凭据,清除 cookie 和密码后,重新启动 IE,然后重新登录您的帐户(或 windows live 帐户).然后启动 Visual Studio 并尝试重新连接到 Azure devops,现在应该会提示您输入凭据.

希望这会有所帮助.

We use Visual Studio 2019 with Azure DevOps and a Git repo for source control. Our logins are our identities from our Azure Active Directory.

Over this past weekend, we migrated from one Office 365 tenant to a new Office 365 tenant, and with that came a new Azure Active Directory. We transferred our custom domain name to the new tenant and it is now the same as it was on the old tenant.

The problem now is with Visual Studio 2019 - it seems to be caching our old logins. We have uninstalled and re-installed VS, but it seems that doing that doesn't actually clear everything. It looks like our old creds are still cached.

The reason I'm pretty certain that this is a Visual Studio-specific issue is that we are all able to login to our repos at visualstudio.com and we can see everything just as it was before the migration (we did the proper migration of Azure Active Directory within DevOps - that was successful). Further, when you browse to our repo from within Visual Studio, it brings us to a completely different link and empty repo.

Does anyone know how we can completely clear all account caches from Visual Studio? Uninstalling VS apparently doesn't do it.

解决方案

how we can completely clear all account caches from Visual Studio?

We could clear the cache from the following aspects:

  1. Clean Credential Manager cache: Go to Control Panel-> Click User Accounts-> Click Credential Manager-> Go to Windows Credentials, click the link Remove from vault to remove stored Azure devops credentials. Now, When you login into Visual Studio you will be asked to give credentials to connect Azure devops.

  2. Clean team foundation cache: the folder path is: C:\Users\username(Team Explorer user name)\AppData\Local\Microsoft\Team Foundation\8.0\Cache

  3. Delete cookies in browser: logout of account in Internet Explorer and then clear all Internet Explorer cookies and stored password as detailed in this blog: Changing Azure devops credentials in Visual Studio 2019, After clearing out the cookies and password, restart IE and then re-login to your account(or windows live account). Then start Visual Studio and try to reconnect to Azure devops, you should be prompted for a credential now.

Hope this helps.

这篇关于Visual Studio 2019 - Azure DevOps 的旧凭据已缓存,我们无法摆脱它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆