开发者

Configuring Unity using a file other than web.config or app.config?

开发者 https://www.devze.com 2023-04-03 12:25 出处:网络
I understand how to configure MS Unity 2.0 using the app.config or web.config files. I want to instantiate the Unity Container and then somehow pass it the configuration file to use. The configuration

I understand how to configure MS Unity 2.0 using the app.config or web.config files. I want to instantiate the Unity Container and then somehow pass it the configuration file to use. The configuration file needs to be unrelated to the app.config or web.config (i.e. not a configuration section with a ConfigSource). 开发者_开发知识库Does anyone know if this can be done?


MSDN is your friend: Loading the Configuration from Alternative Files

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号