2

In the Autofac documentation, they provide a brief example of injecting a component via a service...

However, I'm unable to locate the extension method AddJsonFile ..

The provided snippet is:

var config = new ConfigurationBuilder();
config.AddJsonFile("autofac.json");

Bonus: How to find a extension method when the "Using" statements are not provided!

codeputer
  • 1,987
  • 3
  • 19
  • 45

1 Answers1

3

Found the answer on here in a comment after scrolling down. They are located Nuget Package: Microsoft.Extensions.Configuration.XML -or- Microsoft.Extensions.Configuration.Json

Community
  • 1
  • 1
codeputer
  • 1,987
  • 3
  • 19
  • 45