Home Is there a universal config file for .Net Standard 2.0 Class Library?
Reply: 0

Is there a universal config file for .Net Standard 2.0 Class Library?

user728
1#
user728 Published in July 16, 2018, 6:32 pm

I have a Class Library that I'm converting to a .Net Standard 2 class library in order to also use in ASP.Net Core 2.0 projects.

The library has always read from a config file items such as SMTP settings, connection strings etc.

In Web Projects it finds these values in web.config.

In Console/WinForms it finds these values in app.config.

Is there an equivalent config file for .Net Core 2.0 projects that "just works" like the previous examples?

I assume the answer is no, but looking for best way to handle this given the library is used across the organization, so maintaining backwards compatibility is important.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.320964 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO