Friday, April 20, 2018

.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?

.Net Core Configuration Question Click here
  • Blogger Comment
  • Facebook Comment

0 comments:

Post a Comment

The webdev Team