-
-
Notifications
You must be signed in to change notification settings - Fork 56
Open
Labels
waiting on feedbackWaiting on feedback. Items that do not received feedback within 30 days may be closed.Waiting on feedback. Items that do not received feedback within 30 days may be closed.
Description
After upgrading to Moq.AutoMocker 3.6.1, I got the following error in the AutoMocker generated code:
The call is ambiguous between the following methods or properties:
'Moq.AutoMock.AutoMockerKeyedServicesExtensions.WithKeyedService<TService, TImplementation>(Moq.AutoMock.AutoMocker, TImplementation, object?)'
and
'Moq.AutoMock.AutoMockerKeyedServicesExtensions.WithKeyedService<TService, TImplementation>(Moq.AutoMock.AutoMocker, TImplementation, object?)'
In File AutoMockerKeyedServicesExtensions.g.cs
In the source code, I found a test related to this feature flag that validate if the method should be created or not:
EnableMoqAutoMockerKeyedServicesGenerator
Trying to disable it by adding the following to my csproj doesn't work
<PropertyGroup>
<EnableMoqAutoMockerKeyedServicesGenerator>false</EnableMoqAutoMockerKeyedServicesGenerator>
</PropertyGroup>
Metadata
Metadata
Assignees
Labels
waiting on feedbackWaiting on feedback. Items that do not received feedback within 30 days may be closed.Waiting on feedback. Items that do not received feedback within 30 days may be closed.