codecadwallader / codemaid

CodeMaid is an open source Visual Studio extension to cleanup and simplify our C#, C++, F#, VB, PHP, PowerShell, JSON, XAML, XML, ASP, HTML, CSS, LESS, SCSS, JavaScript and TypeScript coding.
http://www.codemaid.net
GNU Lesser General Public License v3.0
1.89k stars 356 forks source link

SteveCadwallader.CodeMaid.CodeMaidPackage.InitializeAsync(CancellationToken cancellationToken, IProgress`1 progress) #881

Open tanpengch opened 2 years ago

tanpengch commented 2 years ago

Environment

Description

codemaid can not run。 ActivityLog.xml is

2788 Error VisualStudio SetSite failed for package [CodeMaidPackage]Source: 'SteveCadwallader.CodeMaid' Description: 未能加载文件或程序集“Microsoft.VisualStudio.Threading, Version=16.10.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”或它的某一个依赖项。系统找不到指定的文件。 System.IO.FileNotFoundException: 未能加载文件或程序集“Microsoft.VisualStudio.Threading, Version=16.10.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”或它的某一个依赖项。系统找不到指定的文件。 文件名:“Microsoft.VisualStudio.Threading, Version=16.10.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a” 在 SteveCadwallader.CodeMaid.CodeMaidPackage.InitializeAsync(CancellationToken cancellationToken, IProgress`1 progress) 在 Microsoft.VisualStudio.Shell.AsyncPackage.<>c__DisplayClass20_0.<<Microsoft-VisualStudio-Shell-Interop-IAsyncLoadablePackageInitialize-Initialize>b__1>d.MoveNext() --- 引发异常的上一位置中堆栈跟踪的末尾 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 Microsoft.VisualStudio.Services.VsTask.RethrowException(AggregateException e) 在 Microsoft.VisualStudio.Services.VsTask.InternalGetResult(Boolean ignoreUIThreadCheck) 在 Microsoft.VisualStudio.Services.VsTask.GetResult() 警告: 程序集绑定日志记录被关闭。 要启用程序集绑定失败日志记录,请将注册表值 [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD)设置为 1。 注意: 会有一些与程序集绑定失败日志记录关联的性能损失。 要关闭此功能,请移除注册表值 [HKLM\Software\Microsoft\Fusion!EnableLog]。 {4C82E17D-927E-42D2-8460-B473AC7DF316}
80070002

thanks

tanpengch commented 2 years ago

codemaid version is CodeMaid.VS2019.v12.0.300.vsix。 already delete C:\Users\tanpeng\AppData\Local\Microsoft\VisualStudio\16.0_73a01dbd\Extensions files ,but not run codemaid。

codecadwallader commented 2 years ago

Thanks for reporting the issue. Can you take a look at #865 and see if that solution helps you? Several users have had to upgrade to the latest VS2019 and that fixed the issue for them. Hope it helps.