index > Visual Studio Tools for Office > Moving Outlook Add-in to VSTO 2005?

Moving Outlook Add-in to VSTO 2005?

Hi,

We have an Outlook add-in that was developed in VS.NET 2003 (non-VSTO).  We now want to move it to VSTO 2005.  I have been looking for some information on MSDN on how to convert our add-in to VSTO 2005  but no luck.  Can anyone give me some information on how to do a conversion?
RomeoChua
Hi,

I don't think there is an migration path which you could use to automatically convert your addin from VS2003 to VSTO2005. I would suggest you create a new Outlook VSTO project in VS2005 and move your existing code (copy/paste) to the project.


Mark the best replies as answers! | Blog: http://blog.jausovec.info
PeterJausovec
There is no migration path (although an enterprising ISV or hobbyist could create one and potentially make some $$ Smile.

I have a few extra things to keep in mind that I wanted to point out. As Peter mentioned, the best approach is to create a new project in VSTO 2005 and then add your existing items. Where possible, just add the items to the project. Where that is not possible, copy/paste the code into a new class file. Those instances should be minimal, however.

One of the key things to keep in mind is that in VSTO 2005, you only have two events tied to Outlook. These are startup and shutdown events. In IDTExtensibility2 add-ins, you have 5 events. You will need to map your code from the five into the two events. That should be pretty easy.

Also, you will want to pay attention to how you derive objects. We serve up the Outlook Application object through a different namespace than the standard Interop namespace. Your code should be adjusted accordingly.

I hope these things help.

John.
http://blogs.msdn.com/johnrdurant 


http://blogs.msdn.com/johnrdurant
JohnDurant
Thank you all for the reply.  I now have a better idea of what I need to do for the conversion.

thanks,

Romeo
RomeoChua
reply 4

You can use google to search for other answers

 

More Articles

• PPT SlidShow by Form
• Loadbehaviour changes automatically from 3 to 2
• Word object created in suspended thread won't close...
• Getting Excel install folder
• Excel UDF Description
• Infopath 2003 Template on Visual Studio .Net 2005 Team Suite Tria...
• How to select a task pane at startup?
• DLL memory problem when called from within Excel
• renaming an Excel sheet
• How to 'translate' a Dataset into a Table in MS Word
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• VSTO Solution is not running on client's
• Identify a Word Range
• Microsoft outlook Plugin Compatibility
• Import xml
• MDX query to filter the cube
• VSTO Excel Binding a dataset from a webe
• Office addins Project Creation Failed
• word document revisions
• Word Add-In Office 12 Deployment
• Reply as plain text
• VSTA Integration
• Using InsertXML method?
• How to rectreive a display name from the
• C++ and Access
• Rightclick context menu in MAPIFolder in

Hot Articles

• I think that is a Bug in Visual Studio 2
• Running a Word VSTO Project - What steps
• VSTO for Excel
• Error on Schema Designer closes Visual S
• Globalization and Localization Problem w
• Drag outlook contacts into my app
• Synching Palm with MS Outlook
• Get the sending XmlNode
• Possible Bug in Word 2000/XP add-in impl
• [Solved] DataGridView appearance problem
• "Failed to update customization fro
• Excel COM Add-in vs. Managed Automation
• Security Deployment Package
• COM Addin, in frame work 1.1 , C# and o
• Replacing Word Commands

Recommend Articles

• Excel PIA Problems
• Command not available exception on using
• What happens if I call CommandBar.Enable
• Rpresenting ranges as nmbers
• Insert HTML text in a Word document
• Smart Tags in Outlook 2003
• How to programmatically hide bookmarks,
• Please help: Document Protection Program
• VSTO download for students, beginners
• What is good way for handling about .pst
• Deploying Outlook Add-In (after followin
• Outlook: Make mail properties readonly
• vsto code
• KeyPress Event in .Dot Files
• Using Word object to get "Available