MBulli / SmartCommandlineArgs

A Visual Studio Extension which aims to provide a better UI to manage your command line arguments
GNU General Public License v2.0
99 stars 35 forks source link

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

Open djfooks opened 7 months ago

djfooks commented 7 months ago

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].

n-zer commented 7 months ago

I'm seeing this as well as of yesterday

Edit: Rolling back to 2.6.0 fixed things.

Irame commented 7 months ago

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

n-zer commented 7 months ago

I'm on VS2022, 17.4.1

Irame commented 7 months ago

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 commented 7 months ago

Here it is: v3.0.3

djfooks commented 6 months ago

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

Irame commented 6 months ago

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?