visual-studio - 无法登录 Visual Studio 2017

标签 visual-studio visual-studio-2017 microsoft-account

当我开始时,会弹出一个窗口,提示评估期已结束。我只需要登录 Visual Studio,但是当我尝试时出现此错误:

Microsoft Visual Studio We could not refresh the credentials for the account Could not load file or assembly System.Net.Http, Version-4.0.0.0, Culture-neutral, PublickeyToken-bo3f5f7f11d50a3a or one of its dependencies. The system cannot find the file specified.

后跟:

Inheritance security rules violated by type: 'System.Net.Http.WebRequestHandler'. Derived types must either match the security accessibility of the base type or be less accessible.

我使用的是 15.8.0 版本。不用说,这完全是一场灾难,因为它完全阻碍了进一步的发展。

编辑:我应该说这是 this issue 的延续,这是在上次 Windows 更新后开始发生的。我刚刚又进行了一次 Windows 更新,问题仍然存在。

最佳答案

运行 Visual Studio 2017

  1. 在出现登录对话框之前,快速选择工具 -> 选项
  2. 转到环境 -> 帐户
  3. 选择添加或重新验证帐户时启用设备代码流
  4. 点击确定
  5. 通过浏览器登录

关于visual-studio - 无法登录 Visual Studio 2017,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50809275/

相关文章:

azure-active-directory - 如何获取client_assertion字符串

azure - 开发人员应如何为客户设置 Azure?

c# - Visual Studio在编辑器中显示源代码时正在检测错误,并且在生成用于在 Debug模式下执行的代码时未看到任何错误

C++ 指针 - visual studio 抛出异常

visual-studio - 当 .project 文件发生变化时,有没有办法让 Visual Studio 重新加载所有项目?

c# - 升级 .NET 版本后,TwoWay 或 OneWayToSource 绑定(bind)无法对只读属性起作用

c# - 报表查看器未出现在工具箱中 - Visual Studio 2017

visual-studio - VS : "adding namespace will prevent the debug session from continuing" error中的ASP CORE调试

azure - 工作帐户和 Microsoft 帐户之间的混淆

visual-studio - 是否有可视化代码编辑器功能可以列出当前页面的函数/方法?