Create a version independent Outlook-addin

When using the Add-In Wizard for Add-in Add-ins in Visual Studio 2008, I have a choice between creating an add for Outlook 2003 and Outlook 2007 (both using .NET). However, if I choose one of them, the add-in won't work in the other version.

What's the best way to create an add-on that works in both versions?

0


source to share


3 answers


some open source projects online for an independent version using office.



http://netoffice.codeplex.com/

+1


source


Apply the DRY principal (don't repeat yourself) and move the logic out of the version specific project. It looks like you will have to create two projects and customize each version. Just write the code so that shared classes and behavior can be contained in an independent library and thus referenced both. Hope this helps.



+1


source


Outlook 2003 add-ins should work in Outlook 2007. I am writing an add-in since VS 2005 that works in both. Make sure you are using the 2003 PIA. If you create your own interop assemblies you will have problems.

I also use a dedicated development machine with only Outlook 2003 and Visual Studio. I have other machines running Outlook 2007 for testing.

What errors are you trying to fix in 2003 in Outlook 2007?

+1


source







All Articles