Outlook Add-in Project problem

M

Marc

Hello,

Am getting acquainted with VSTO and Visual Studio. I have been really
successful adding references to the PIAs for Word, Outlook, Excel,
etc. to Console applications and VB applications.

However, I also wanted to investigate add-ins (specifically for
Outlook). I downloaded VBTO 2007 SE and installed it, and now when I
start Visual Studio I see project templates for, e.g. Outlook Add-In.

That's great, except when I use the template I get all kinds of
errors, e.g.:
"Warning 1 This project references the primary interop assembly for
Microsoft Office Outlook 2007, but this primary interop assembly is
not installed. "

Now, that's awfully confusing since I am able to create a console app,
add a reference to Outlook 12.0 Object Library, and type something
like "Imports Microsoft.Interop.foo", whereas when I do that in my
template I get the error that this is not defined.

I tried to manually add the Outlook object library to my Add-In
Project, but that doesn't work either. When I view the resources in
the project properties, it lists the Outlook 12.0 Object Library (just
like in my console application), but says "The system cannot find the
reference specified"

Any clues how I can get this working?

Thanks,
Marc
 

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