参考官方回复:
Microsoft.VisualStudio.Editor.Implementation.EditorPackage did not load correctly - Microsoft Q&A
- Close VS and VS Installer > navigate to
C:\Users\username\AppData\Local\Microsoft\VisualStudio\17.0_xxxxxxxx
> renameComponentModelCache
folder(s) > run VS as administrator. - Run
devenv /ResetSettings
command inDeveloper Command Prompt for Visual Studio 2022
to reset VS and VS settings.
我的版本是VS2022,用的方法1解决的问题