Office 2000, 2002 and 2003 compatibility

Add-in Express™ Support Service
That's what is more important than anything else

Office 2000, 2002 and 2003 compatibility
 
Oliver Degnan




Posts: 54
Joined: 2005-02-03
I just referenced Outlook 9.0 library in my Outlook add-in and I am unable to compile as it tells me that the Outlook assembly must be signed with a strong name.

Can you please give me an example on how to sign the Outlook 2000 assembly with a strong name?

Thank you.
Posted 03 Mar, 2005 11:04:47 Top
Oliver Degnan




Posts: 54
Joined: 2005-02-03
Actually, is this what you would suggest:

first create strong name:
sn -k Interop.Outlook.snk

then, sign the Outlook 2000 COM with:
tlbimp C:\PROGRA~1\MICROS~2\Office\MSOUTL9.OLB /out:C:\Outlook2000PIA.dll /keyfile:C:\Interop.Outlook.snk

Now, I can reference Outlook2000PIA.dll in my project. Right?
Posted 03 Mar, 2005 11:42:09 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Hi Oliver.

You are right. But you could do this more simply. It is enough to type in the Interop.Outlook.snk to the "Wrapper Assembly Key File" property of your project and the Interop.Outlook.dll will be signed automatically.
Posted 04 Mar, 2005 06:04:11 Top
Oliver Degnan




Posts: 54
Joined: 2005-02-03
Hmm.
I am not quite sure I understand you.

I already have an .snk file in my project and the assembly can only be signed once. I do not have a seperate project for the Interop stuff. (If that's what you mean)

I am using your add-in .NET project. This addin is strongly signed.

Also, is it really neccessary to strongly sign the add-in?

Thanks.
Posted 04 Mar, 2005 10:26:28 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Hi Oliver.

I already have an .snk file in my project and the assembly can only be signed once. I do not have a seperate project for the Interop stuff. (If that's what you mean)

You don't need to seperate project for the Interop assembly. The "Wrapper Assembly Key File" property is used for signing interop assemblies within the project. See here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cscon/html/vcurfcprojectgeneralpropertypage.asp

Also, is it really neccessary to strongly sign the add-in?

It is neccessary to sign your add-in with strong name if you want to use a shime for your add-in.
Posted 06 Mar, 2005 12:03:09 Top