You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunatelly, after publishing the tests project the reference to Microsoft.EXtensions.DependencyInjection is downgraded to 2.2.0 and we receive the following exception upon tests execution:
Error Message:
System.MissingMethodException : Method not found: 'Void Microsoft.Extensions.DependencyInjection.ServiceProviderOptions.set_ValidateOnBuild(Boolean)'.
Stack Trace:
at Microsoft.Extensions.Hosting.Host.<>c.<CreateDefaultBuilder>b__1_3(HostBuilderContext context, ServiceProviderOptions options)
at Microsoft.Extensions.Hosting.HostingHostBuilderExtensions.<>c__DisplayClass3_0.<UseDefaultServiceProvider>b__0(HostBuilderContext context)
at Microsoft.Extensions.Hosting.Internal.ServiceFactoryAdapter`1.CreateBuilder(IServiceCollection services)
at Microsoft.Extensions.Hosting.HostBuilder.CreateServiceProvider()
at Microsoft.Extensions.Hosting.HostBuilder.Build()
This property ValidateOnBuild is added after Microsoft.Extensions.DependencyInjection version 3.0.0 so it really could not be found.
I would be very interested to understand why coverlet should reference this package and how could we potentially fix our issue without removing coverlet as this is something we would not like to do.
The text was updated successfully, but these errors were encountered:
In some of my tests my team needs to start an instance of one of our services. This is a part of the code:
Unfortunatelly, after publishing the tests project the reference to Microsoft.EXtensions.DependencyInjection is downgraded to 2.2.0 and we receive the following exception upon tests execution:
This property
ValidateOnBuild
is added afterMicrosoft.Extensions.DependencyInjection
version3.0.0
so it really could not be found.I would be very interested to understand why
coverlet
should reference this package and how could we potentially fix our issue without removingcoverlet
as this is something we would not like to do.The text was updated successfully, but these errors were encountered: