.Net Core Configuration Question
IF I have a dotnet core MVC project and a class library with a static class. How can I set a property within the static class using the dotnet core configuration?
With the dotnet framework this is easy to do by simply using the ConfigurationManager to access the MVC projects web.config, but from everything I read about the dotnet core configuration you need to pass an instance using dependency injection. How can I do that with a static class in a referenced class library?
0 comments:
Post a Comment