-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
Could not load file or assembly"Could not load file or assembly" in the VS extension"Could not load file or assembly" in the VS extension
Description
Used Visual Studio
Visual Studio 2026
Are the latest Visual Studio updates installed?
Yes
Content of reqnroll.json (if present)
No response
Issue Description
- Visual Studio 2026
- Reqnroll for Visual Studio extension: 2025.2.359.
When targeting .NET 10, the following error is shown in the Reqnroll extension's output:
Info: OnActivityStarted: Starting Visual Studio Extension...
Info: CreateProjectScope: Initializing project: JMB.Ocean.AcceptanceCriterias
Info: OnSettingsInitialized: Project settings initialized: .NETCoreApp,Version=v10.0,Reqnroll:2.1.0
Warning: AndDiscoveryProviderSucceed: Error during binding discovery.
Command executed:
D:\source\tests\bin\Debug> C:\Program Files\dotnet\dotnet.exe exec c:\users\nuzolx\appdata\local\microsoft\visualstudio\18.0_319582ef\extensions\2irjaf01.mnx\Connectors\Reqnroll-Generic-net10.0\reqnroll-vs.dll discovery D:\source\tests.dll
Exit code: 0
Message:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Extensions.DependencyInjection.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified.
File name: 'Microsoft.Extensions.DependencyInjection.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
at Reqnroll.Microsoft.Extensions.DependencyInjection.DependencyInjectionPlugin.CustomizeGlobalDependencies(Object sender, CustomizeGlobalDependenciesEventArgs args)
at Reqnroll.Microsoft.Extensions.DependencyInjection.DependencyInjectionPlugin.CustomizeGlobalDependencies(Object sender, CustomizeGlobalDependenciesEventArgs args)
at Reqnroll.Plugins.RuntimePluginEvents.RaiseCustomizeGlobalDependencies(ObjectContainer container, ReqnrollConfiguration reqnrollConfiguration)
at Reqnroll.Infrastructure.ContainerBuilder.CreateGlobalContainer(Assembly testAssembly, IRuntimeConfigurationProvider configurationProvider)
at Reqnroll.Bindings.Provider.BindingProviderService.CreateGlobalContainer(Assembly testAssembly, String jsonConfiguration)
at Reqnroll.Bindings.Provider.BindingProviderService.DiscoverBindings(Assembly testAssembly, String jsonConfiguration)
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
--- End of inner exception stack trace ---
at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
at ReqnrollConnector.ReflectionExtensions.ReflectionCallStaticMethod[T](Type type, String methodName, Type[] parameterTypes, Object[] args)
at ReqnrollConnector.ReqnrollProxies.BindingRegistryFactory.GetBindingRegistry(AssemblyLoadContext assemblyLoadContext, Assembly testAssembly, Option`1 configFile)
at ReqnrollConnector.Discovery.ReqnrollDiscoverer.Discover(IBindingRegistryFactory bindingRegistryFactory, AssemblyLoadContext assemblyLoadContext, Assembly testAssembly, Option`1 configFile)
at ReqnrollConnector.Discovery.DiscoveryCommand.<>c__DisplayClass6_0.<Execute>b__0(IBindingRegistryFactory bindingRegistryFactory)
at FunctionalExtensions.Map[TSource,TResult](TSource this, Func`2 fn)
at ReqnrollConnector.Discovery.DiscoveryCommand.Execute(AssemblyLoadContext assemblyLoadContext)
at ReqnrollConnector.ReflectionExecutor.<>c__DisplayClass3_0.<Execute>b__6(DiscoveryCommand cmd)
at FunctionalExtensions.Map[TSource,TResult](TSource this, Func`2 fn)
at ReqnrollConnector.ReflectionExecutor.<>c__DisplayClass3_1.<Execute>b__2()
at EitherAdapters.Try[T](Func`1 act)
Before update extension, I have this error message: #127
Steps to Reproduce
Using:
- Reqnroll.NUnit 2.1.0
- Reqnroll.Microsoft.Extensions.DependencyInjection 2.1.0
Open the output in the Reqnroll output dialog
Link to a project repository that reproduces the issue
No response
ilMattion and mattHollywood87
Metadata
Metadata
Assignees
Labels
Could not load file or assembly"Could not load file or assembly" in the VS extension"Could not load file or assembly" in the VS extension