SmartCommandlineArgs icon indicating copy to clipboard operation
SmartCommandlineArgs copied to clipboard

Could not load file or assembly 'Microsoft.Bcl.AsyncInterfaces' on extension startup

Open djfooks opened this issue 2 years ago • 7 comments

Today when I start VS I'm getting this error and the Smart Command Line window no longer shows up.

I tried reinstalling and restarting but still happens

CreateInstance failed for package [CmdArgsPackage]Source: 'mscorlib' Description: Exception has been thrown by the target of an invocation. System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Bcl.AsyncInterfaces, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified. at SmartCmdArgs.CmdArgsPackage..ctor() --- End of inner exception stack trace --- at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) at System.Activator.CreateInstance(Type type, Boolean nonPublic) at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) at System.Activator.CreateInstanceFromInternal(String assemblyFile, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo) at System.AppDomain.CreateInstanceFrom(String assemblyFile, String typeName)System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Bcl.AsyncInterfaces, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified. File name: 'Microsoft.Bcl.AsyncInterfaces, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' at SmartCmdArgs.CmdArgsPackage..ctor() WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

djfooks avatar Apr 02 '24 12:04 djfooks

I'm seeing this as well as of yesterday

Edit: Rolling back to 2.6.0 fixed things.

n-zer avatar Apr 02 '24 17:04 n-zer

Hi, thanks for the report, which version of VS are you using?

Irame avatar Apr 02 '24 20:04 Irame

I'm on VS2022, 17.4.1

n-zer avatar Apr 02 '24 20:04 n-zer

I can't reproduce the issue but I have a (guess) fix ready if you want to try It out. I have it uploaded in 3 minutes.

Irame avatar Apr 02 '24 20:04 Irame

Here it is: v3.0.3

Irame avatar Apr 02 '24 20:04 Irame

I'm on 3.1.0 now . Looks like it is working again. Thanks!

djfooks avatar May 01 '24 09:05 djfooks

Version 3.1.0 is the same as the old 2.6.0 because the Visual Studio Marketplace does not allow you to revert back to an older version. It would be great if you could still try v3.0.3 (because that's the new version with new features) and tell me if it works or if your error still persists?

Irame avatar May 01 '24 09:05 Irame