简体   繁体   English

为什么设备代码未在 Visual Studio 中显示为登录选项(工具 - 选项 - 帐户)?

[英]Why Device Code Not Showing as a sign in option in Visual Studio (Tools - Options - Accounts)?

We use Visual Studio in a machine with limited internet access.我们在互联网访问受限的机器中使用 Visual Studio。 I use the "Device Code" option to login to my Visual Studio / MSDN subscription from that machine.我使用“设备代码”选项从该机器登录到我的 Visual Studio / MSDN 订阅。

In my Tools -> Options -> Accounts screen, I see "Device Code" as an option (VS2019, with all updates).在我的工具 -> 选项 -> 帐户屏幕中,我看到“设备代码”作为一个选项(VS2019,包含所有更新)。 However my coworker, who uses VS2022 Preview (with all updates) doesn't see Device Code as an option.但是,我的同事使用 VS2022 预览版(包含所有更新)并没有将设备代码视为一个选项。 Please see screenshots:请看截图: 设备代码选项显示

设备代码选项未显示

I couldn't see anything in the Microsoft documentation about this option being removed.我在Microsoft 文档中看不到有关删除此选项的任何内容。 Why is this option not available in VS2022?为什么VS2022没有这个选项?

According to a Microsoft rep , it seems like in Visual Studio 2022 this was deprecated:根据Microsoft 代表的说法,在 Visual Studio 2022 中,这似乎已被弃用:

This option is deprecated in Visual Studio 2022.此选项在 Visual Studio 2022 中已弃用。

I think the reason it was removed was because of a possible degraded experience.认为它被删除的原因是因为可能会降低体验。 I can't tell for sure, but version 16.6 (which would be Visual Studio 2019), changed this I believe :我无法确定,但我相信 16.6 版(即 Visual Studio 2019)改变了这一点

Versions of Visual Studio prior to 16.6 may have degraded authentication experiences when used with accounts that have enabled CA policies such as MFA, and are associated with two or more tenants. 16.6 之前的 Visual Studio 版本在与已启用 CA 策略(如 MFA)并与两个或更多租户关联的帐户一起使用时,可能会降低身份验证体验。

These issues can cause your instance of Visual Studio to prompt reauthentication multiple times per day.这些问题可能会导致您的 Visual Studio 实例每天多次提示重新身份验证。 You may have to re-enter your credentials for previously authenticated tenants, even during the course of the same Visual Studio session.即使在同一个 Visual Studio 会话过程中,您也可能必须为以前经过身份验证的租户重新输入您的凭据。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM