C
C#14mo ago
dave1

❔ How to bugfix this issue of Ambigious call when it's pointing to the same package

infrastructure/Program.cs(50,18): error CS0121: The call is ambiguous between the following methods or properties: 'Microsoft.Extensions.DependencyInjection.MediatorDependencyInjectionExtensions.AddMediator(Microsoft.Extensions.DependencyInjection.IServiceCollection, System.Action<Mediator.MediatorOptions>)' and 'Microsoft.Extensions.DependencyInjection.MediatorDependencyInjectionExtensions.AddMediator(Microsoft.Extensions.DependencyInjection.IServiceCollection, System.Action<Mediator.MediatorOptions>)'
2 Replies
dave1
dave114mo ago
yeah i did, it turned out i had Mediator.SourceGenerator in both projects but i only need it in the main project
Accord
Accord14mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.