Singing Interop assembly with a strong name

  • Thread starter Thread starter Guest
  • Start date Start date
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.
 
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
 
Back
Top