Singing Interop assembly with a strong name

G

Guest

Hello,

I have a class library project which has a class supporting COM+
transactions. This class library project refers a COM interop assembly. Now i
need to register the assembly after compiling this class library projects
into GAC. Registrering it into GAC requires tthat the assembly should have a
strong name. Now when i use [assembly: assemblykeyfile("file.snk")]
attribute and compile the class library project it prompts me that the
interop assembly should have a strong name too..

Now how to assign that interop assembly a strong name whehn its source is
not accessible to me ?? OR how compile successfully this class library
without assigning strong name to interop assembly.

Any other workarounds ??

Thanks,
Hatim Ali.
 
M

Mattias Sjögren

Now how to assign that interop assembly a strong name whehn its source is
not accessible to me ?? OR how compile successfully this class library
without assigning strong name to interop assembly.

Set the Assembly Wrapper Key File option in the project properties,
then remove and re-add the COM reference.

Or run TlbImp.exe with the /keyfile option.



Mattias
 

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