|
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 $$ .
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 |
|