简体   繁体   English

无法从另一个项目的dll中读取配置

[英]Unable to read a config from a dll of another project

When an application is referring to the configuration of another project, all the values in the appsettings tag returning null values. 当应用程序引用另一个项目的配置时, appsettings标记中的所有值都将返回空值。 Please let me know there is anything to add in the code to read the values(key values from appsetting tag) from the configuration file from another project. 请让我知道代码中要添加任何内容,以从另一个项目的配置文件中读取值(来自appsetting标记的键值)。

You cannot do this out of the box. 您不能开箱即用。 Your options are: 您的选择是:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM