Problem creating unit test in VSTO 3.0 add-in

D

Dorell

Hi all,

I’m trying to create units tests for a class in an Outlook 2007 VSTO 3.0
add-in using VS 2008 but I get the following error message...

The following error was encountered while reading module
‘Microsoft.Office.Tools.Outlook.v9.0’: Could not resolve type reference:
[Microsoft.Office.Interop.Outlook]Microsoft.Office.Interop.Outlook.FormRegionStartup.

I cannot generate unit tests in any of the classes in this project. Also I
am not using any Form Regions, only WPF windows.

Any ideas how to resolve this issue?

Regards,
Jason
 
D

Dorell

I've tried creating the unit tests manually by adding a test project to the
solution with the VSTO add-in but I cannot add a reference to the VSTO
project, it does not appear in the Projects tab of the Add Reference dialog,
but I can add a reference to the Test project from the add-in! Could this
issue be related to the error message below? I’ve found a work around by
adding the DLL of the VSTO project to the test project but this means I have
to re-add the DLL every time I make a change to the code in the VSTO project
which is very inconvenient.

Can anyone help?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top