我有一个类库,我正在将其转换为.Net标准2类库,以便也在ASP中使用.Net核心2.0项目.
库始终从配置文件中读取SMTP设置、连接字符串等项.
在Web项目中,它在web.config中找到这些值.
在Console/WinForms中,它在app.config中找到这些值.
Is there an equivalent config file for .Net Core 2.0 projects that "just works" like the previous examples?
我认为答案是否定的,但考虑到整个组织都在使用这个库,所以保持向后兼容性是很重要的.