Do binding redirects in app.config for class libraries do anything?

前端 未结 5 486
深忆病人
深忆病人 2021-02-01 12:55

The VS solutions I often work with consist of a single executable project (console app, web app) and many class library projects that are all r

5条回答
  •  暖寄归人
    2021-02-01 13:10

    Generally there is only one configuration file and thats the configuration file of the executeable (.exe.config, web.config).

    Any assembly redirects have to be placed in the configuration file of the executable.

    Configuration files of dlls need to be loaded manually using the ConfigurationManager class. See also this question Equivalent to 'app.config' for a library (DLL)

提交回复
热议问题