我正在使用 VS2008、C# 为 Outlook 开发一个加载项。
我试图找出一种方法来允许用户在安装过程中指定一些设置并在加载项中使用它们。
寻求方法我不必编写使用注册表。
先谢谢了~
我正在使用 VS2008、C# 为 Outlook 开发一个加载项。
我试图找出一种方法来允许用户在安装过程中指定一些设置并在加载项中使用它们。
寻求方法我不必编写使用注册表。
先谢谢了~
谢谢,
实际上,我决定阅读安装位置的 Outlook 插件注册表,并在安装期间将配置文件复制到那里。到目前为止它工作正常:)
Its an Addin, so how exactly is
app.config, and make sure that it's copied to dll directory?
going to help?
Basically you would need to create a file called Outlook.exe.config and put it in the Office12 folder with Outlook.exe (c:\Program Files\Microsoft Office\Office12)
If you do this it will get loaded, the only potential issue is that it is also available to any other addins that are loaded into the outlook.exe process. A better idea is just as the OP suggested an use an arbitary config file copied to the targetdir and read it from there.
app.config,并确保它被复制到 dll 目录?