Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
djfooks opened this issue Apr 2, 2024 · 7 comments
Assignees
Labels

Comments

@djfooks
Copy link

djfooks commented Apr 2, 2024

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 djfooks changed the title Could not load file or assembly 'Microsoft.Bcl.AsyncInterfaces' on plugin startup Could not load file or assembly 'Microsoft.Bcl.AsyncInterfaces' on extension startup Apr 2, 2024
@n-zer
Copy link

n-zer commented Apr 2, 2024

I'm seeing this as well as of yesterday

Edit: Rolling back to 2.6.0 fixed things.

@Irame Irame pinned this issue Apr 2, 2024
@Irame Irame self-assigned this Apr 2, 2024
@Irame Irame added the bug label Apr 2, 2024
@Irame
Copy link
Collaborator

Irame commented Apr 2, 2024

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

@n-zer
Copy link

n-zer commented Apr 2, 2024

I'm on VS2022, 17.4.1

@Irame
Copy link
Collaborator

Irame commented Apr 2, 2024

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
Copy link
Collaborator

Irame commented Apr 2, 2024

Here it is: v3.0.3

@djfooks
Copy link
Author

djfooks commented May 1, 2024

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

@Irame
Copy link
Collaborator

Irame commented May 1, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants