C#C
C#16mo ago
watermelon

How can I get service provider from service collection?

Hello, everyone.
am working on console app using meditR, want to get service provider from service collection.

I've got a compile error on ServiceCollection.BuildServiceProvider
IServiceCollection' does not contain a definition for 'BuildServiceProvider' and no accessible extension method 'BuildServiceProvider' accepting a first argument of type 'IServiceCollection' could be found (are you missing a using directive or an assembly reference?
image.png
Was this page helpful?