Visual Studio 2022 预览版“MEF Service Broker Package”包未找到

Ked*_*edy 7 visual-studio visual-studio-2022

我安装了VS2022,但出现此错误

我尝试了删除 ComponentModelCahce 文件夹或“devenv /updateconfiguration”和“devenv.exe /clearcache”等解决方案,但没有成功。

感谢帮助。

Dar*_*iak 0

我刚刚遇到了相同的问题,即弹出了如下所示的不同消息:

“Microsoft.VisualStudio.ProjectSystem.VS.Implementation.Package.ProjectPackage”包未正确加载。

ActivityLog.xml 显示以下消息:

SetSite 包 [MEF Service Broker Package] 失败源:“mscorlib”说明:路径中存在非法字符。System.ArgumentException:路径中存在非法字符。在System.IO.Path.NewNormalizePath(字符串路径,Int32 maxPathLength,布尔expandShortPaths)
在System.IO.Path.NormalizePath(字符串路径,布尔fullCheck,Int32 maxPathLength,布尔expandShortPaths)在System.IO.Path.GetFullPathInternal(字符串路径) )在 System.IO.DirectoryInfo.Init(字符串路径,布尔值 checkHost)

以下步骤对我有帮助:

  1. 卸载 Visual Studio
  2. 重新启动Windows
  3. 消除C:\Users\(your_username)\AppData\Local\Microsoft\Visual Studio
  4. 消除C:\Users\(your_username)\AppData\Roaming\Microsoft\Visual Studio
  5. 安装 Visual Studio