VSTO, Outlook.exe.config et
-
19-09-2019 - |
Question
Je l'ai créé un add-in pour Outlook 2007. SE VSTO 2.0 Habituellement, il installe aucun problème sur les machines des utilisateurs finaux, mais ils ont parfois un fichier outlook.exe.config à côté de Outlook.exe qui précise que seulement .NET 1.0 ou 1.1 est autorisé à charger. Par exemple:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v1.0.3705" />
<supportedRuntime version="v1.1.4322" />
</startup>
</configuration>
Dans mon environnement de test, si j'ajoute le moteur d'exécution 2.0 à cette liste, mes charges add-in. 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>
Y at-il problème avec l'ajout de la dernière ligne automatiquement lors de l'installation? S'il arrive à être un autre complément qui utilise le 1.1 runtime, sera à la fois add-ins pouvoir fonctionner côte à côte? Merci!
La solution
Non, ils ne peuvent pas fonctionner côte à côte. Quels que soient les charges plug-in premier déterminera quelle version du CLR sera chargé. Probablement causant d'autres plug-ins à l'échec.
Ceci est corrigé dans .NET 4.0