how to refactor outlook 2007 addin into 2010

emeraldpiggy
emeraldpiggy used Ask the Experts™
on
hi i have a outlook 2007 addin and currently now working in 2010
may i ask are there quick solution fixing it ?
thanks
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Miguel OzSenior Software Engineer
Top Expert 2009

Commented:
One way to do it is to create a new vsto add-in solution in vs 2010 and then move all your ribbon and associated code to the new project. Then compile and build.
the first refactoring I will do once compiled is to use optional parameters (.net 4.0).

Author

Commented:
thanks may I ask is it backwards compatible regarding 2003 and 2007
Miguel OzSenior Software Engineer
Top Expert 2009

Commented:
Glad to help, regarding your second question, it depends, if your code is not using any special 2007 feature, then your code could work for 2003. For instance if you are using a ribbon, this feature will not work for 2003, you need the command bar.

For 2007, is not an issue because .net 4.0 now contains the PIAs. (You need to remove that prerequisite from your installer).
Learn SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

Author

Commented:
thanks
mind me asking last question?
are there any different deployment method for 2003,2007 and 2010?
for instance the current project we have didnt work proper on 2003 and i remove the ribbon and all other features that exists in 2007 though,
btw i am using clickonce deployment
You should take a good look at add-in express software.
I've been writing Outlook addins for a couple of years, and only just discovered these guys, but they take all the pain out of multi version add-ins. Up to now I stuck to vb6 for precisely this reason. Otherwise you really need different add-in versions for each Outlook version.

Add-in express have fixed this - and made a whole bunch of other issues easier. Their support is also first rate and very fast.

http://www.add-in-express.com/

I have no affiliation to them.
Senior Software Engineer
Top Expert 2009
Commented:
Add-in express is a good product, I used before and it solves a lot of issues that VS2005 had, just keep in mind how your add-in is designed.

Back to VS:
If you are using the commandbar you will still see your buttons in 2007 and 2010.
You still need 3 setup projects because Office is COM based and VSTO has different versions for its run time depending on which Office version you are targeting.
Note: It is just me or your questtion is starting to go out of scope from your starting question.

Author

Commented:
yeah it did
sorry about this
thanks again for the help

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial