首页 > 解决方案 > 打开 VS 2019 时出现错误“System.ArgumentException:值不在预期范围内”

问题描述

随着 Visual Studio 2019 (16.9.4) 的最新更新,每次我进入 Visual Studio 时,我都会在输出窗口中收到两条错误消息,均表示:

System.ArgumentException:值不在预期范围内。在 System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo) 在 Microsoft.VisualStudio.Shell.Settings.ShellSettingsStore.GetString(String collectionPath, String propertyName) 在 Community.VisualStudio.Toolkit.BaseOptionModel`1.d__11.MoveNext ()

我环顾四周,看到了关于打开各种项目类型(如 WPF、Silverlight 等)的 SO 上的帖子。但是,我没有打开任何项目或解决方案。我启动 VS 2019,然后选择链接“无代码继续”。我立即得到那个错误。

是什么导致了这种情况,如果有的话,我能做些什么?

标签: visual-studio

解决方案


推荐阅读