【发布时间】:2011-12-28 13:10:52
【问题描述】:
- 我有一些类标记为
ComVisible的.NET 程序集 - 这个程序集注册到
regasm /codebase "assembly_path" - 我有 app.config 名称(实际上是 -
MyAssemblyName.dll.config),它们位于程序集的文件夹中 - 我通过
ConfigurationManager.AppSettings["SettingName"]访问我的程序集中的appSettings - 我有 VBScript 文件,它通过
CreateObject("...")创建我的 COM 对象 - 创建对象时(从 VBScript),
ConfigurationManager.AppSettings["SettingName"]返回 null。看起来程序集没有看到配置文件。
我应该怎么做才能使它可行?
【问题讨论】:
标签: c# .net-4.0 app-config comvisible