Tuesday, April 5, 2011

Testing Outlook VSTO Addins

I am trying to write a really simple Outlook VSTO add in that checks email that is being sent for a few simple properties. My problem is that I cannot seem to install/test the add in using Outlook. I have added unit tests that ensure the code I have written likely does what it should but that final level of integration eludes me. Any suggestions for how to test my code within Outlook? Thanks in advance.

If you want I can post the code as well and better explain what it does.

From stackoverflow
  • If you are coding in Visual Studio debugging automatically places it in Outlook and Opens Outlook. Just make sure Outlook is closed before starting as this seems to cause issues. Otherwise in your bin folder where your dll was created there is a vsto file, Click on that and it will install it.

    smaclell : Thanks for your help I will give it a shot. I tried using the VSTO file and that appeared to fail. I also tried F5 debugging but I probably had outlook open at the time. Will let you know how it goes.
    Alex : No problem, hope it helps. you got lucky because I just started working on vsto this week so I had to figure this stuff out recently ;)
    smaclell : F5 debugging worked like a charm when outlook was not already started. I have been having alot of issues with the vsto as I think I installed a bad version of the addin and now cannot get rid of it. However, that is not a programming question. Thanks you for your help.

0 comments:

Post a Comment