Visual Studio 2022 打开.cs 文件时出现未授权操作
Visual Studio 2022 Unauthorized Operation when opening .cs files
有谁知道如何修复 Visual Studio 2022 打开 .cs 文件时出现的“试图执行未经授权的操作”错误?
我昨天开发了一个 VS 解决方案。今天打开笔记本电脑,重新启动,打开解决方案,并通过解决方案资源管理器打开一个 cs 文件,我得到一个错误和一个空白选项卡:
还注意到从 Windows 10 跳转列表中打开解决方案将导致显示 VS 2022 徽标,然后进程将无提示地崩溃。
到目前为止我尝试过的:
- 已升级 Visual Studio 至 v17.1.5
- 升级了所有扩展
- 确认有足够的磁盘空间、内存。
环境
Windows 10: 21H1
Visual Studio 2022 v17.1.5
第 3 方扩展:AWS 工具包、ReSharper、T4Editor、Git Diff Margin、ReSharper
重新启动解决了问题。
看起来像 Microsoft is aware of the issue but doesn't expect it to be fixed until version 17.2
。
Workaround - Oleg Tkachenko [MSFT]
Unfortunately until 17.2 you might still experience this issue every time Windows Terminal is autoupdated, too many code paths to handle exceptions on… The proven workaround is to restart Windows though.
- https://developercommunity.visualstudio.com/t/Visual-Studio-Editor-is-blank-without-an/1568780
感谢pm100的原创link!!
根据这个论坛条目
https://developercommunity.visualstudio.com/t/Visual-Studio-Editor-is-blank-without-an/1568780
重新启动应该可以解决问题
给我积分:-)
有谁知道如何修复 Visual Studio 2022 打开 .cs 文件时出现的“试图执行未经授权的操作”错误?
我昨天开发了一个 VS 解决方案。今天打开笔记本电脑,重新启动,打开解决方案,并通过解决方案资源管理器打开一个 cs 文件,我得到一个错误和一个空白选项卡:
还注意到从 Windows 10 跳转列表中打开解决方案将导致显示 VS 2022 徽标,然后进程将无提示地崩溃。
到目前为止我尝试过的:
- 已升级 Visual Studio 至 v17.1.5
- 升级了所有扩展
- 确认有足够的磁盘空间、内存。
环境
Windows 10: 21H1
Visual Studio 2022 v17.1.5
第 3 方扩展:AWS 工具包、ReSharper、T4Editor、Git Diff Margin、ReSharper
重新启动解决了问题。
看起来像 Microsoft is aware of the issue but doesn't expect it to be fixed until version 17.2
。
Workaround - Oleg Tkachenko [MSFT]
Unfortunately until 17.2 you might still experience this issue every time Windows Terminal is autoupdated, too many code paths to handle exceptions on… The proven workaround is to restart Windows though.- https://developercommunity.visualstudio.com/t/Visual-Studio-Editor-is-blank-without-an/1568780
感谢pm100的原创link!!
根据这个论坛条目
https://developercommunity.visualstudio.com/t/Visual-Studio-Editor-is-blank-without-an/1568780
重新启动应该可以解决问题
给我积分:-)