We need to create a VSTO add-in in C # that supports both Outlook 2007 and 2010.
To start, we created 3 projects:
- File-> New Project-> Office-> 2007-> Outlook 2007 Add-in
- File-> New Project-> Office-> 2010-> Outlook 2010 Add-in
- File-> New Project-> Windows-> Class Library
All common code is in project # 3.
So far, we have partially developed the add-in and used ClickOnce deployments for testing.
We once noticed that someone installed the 2010 add-in for Outlook 2007 and had no harmful effects.
So a few questions:
- Is there any reason to create a 2007 VSTO project? Can we just create a 2010 project?
- Or is this the only difference in the version of office hours that is downloaded using the ClickOnce Installer? Can you just install the 2010 runtime environment for Outlook 2007?
- If there is no difference, why are there two Visual Studio project templates?
In our final decision, we will use the WiX installer, which also works so far. The WiX installer will be greatly simplified if we can use 1 project for the add-in.
source share