VSTO、Outlook.exe.config 和
我为 Outlook 2007 创建了一个 VSTO 2.0 SE 加载项。通常,它在最终用户的计算机上安装没有问题,但有时他们在 Outlook.exe 旁边有一个 Outlook.exe.config 文件,该文件指定仅 .NET允许加载 1.0 或 1.1。例如:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v1.0.3705" />
<supportedRuntime version="v1.1.4322" />
</startup>
</configuration>
在我的测试环境中,如果我将 2.0 运行时添加到此列表中,则会加载我的加载项。 IE:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v1.0.3705" />
<supportedRuntime version="v1.1.4322" />
<supportedRuntime version="v2.0.50727" />
</startup>
</configuration>
安装过程中自动添加最后一行有什么问题吗?如果恰好有另一个加载项正在使用 1.1 运行时,这两个加载项是否能够并行运行?谢谢!
I've created a VSTO 2.0 SE add-in for Outlook 2007. Usually, it installs no problem on end-users' machines, but sometimes they have an outlook.exe.config file next to Outlook.exe which specifies that only .NET 1.0 or 1.1 is allowed to load. For example:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v1.0.3705" />
<supportedRuntime version="v1.1.4322" />
</startup>
</configuration>
In my test environment, if I add the 2.0 runtime to this list, then my add-in loads. IE:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v1.0.3705" />
<supportedRuntime version="v1.1.4322" />
<supportedRuntime version="v2.0.50727" />
</startup>
</configuration>
Is there any issue with adding the last line automatically during installation? If there happens to be another add-in that is using the 1.1 runtime, will both add-ins be able to run side-by-side? Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不,他们不能并肩奔跑。首先加载的插件将决定将加载哪个版本的 CLR。可能会导致其他插件失败。
这在 .NET 4.0 中已修复
No, they can't run side-by-side. Whatever plug-in loads first will determine what version of the CLR will be loaded. Probably causing other plug-ins to fail.
This is fixed in .NET 4.0