我正在将 .netframework 4.7.2 类库迁移到 .netstandard 2.0 库。
ConfigurationManager 在.netframework 类库中用于读取应用程序设置。
.netstanard 中的 System.Configuration.ConfigurationManager 可用的任何替代选项。
迁移的类库需要在 .net core Web API 和旧的 .netframework Web 应用程序中使用。
c# .net-framework-version asp.net-core .net-standard
.net-framework-version ×1
.net-standard ×1
asp.net-core ×1
c# ×1