IWshRuntimeLibrary does not have a strong name

  • Thread starter Thread starter John O'Neill
  • Start date Start date
J

John O'Neill

Hi

I have a c# application that I sign with a strong name key which is fine,
but when I add a reference to IWshRuntimeLibrary I get the following error
when I build my project:-

error CS1577: Assembly geration failed -- Referenced assembly
'Interop.IWshRuntimeLibrary' does not have a strong name

Does anyone know how I can get round this? Perhaps there is a strong name
version of the IWshRuntimeLibrary I could use? If so, where can I get it
from?

Thanks for any help

John
 
Hi John,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that when you're trying to build an
assembly, and error which says the referenced assembly
'Interop.IWshRuntimeLibrary' does not have a strong name. If there is any
misunderstanding, please feel free to let me know.

Based on my research, when your assembly is trying to interop with a COM or
ActiveX control, a wrapper for that will be generated by VS.NET
automatically. So if the assembly is strong named, the wrapper should also
be strong named. Here are the steps to set strong name key for the wrapper.

1. Right click that C# application project in the Solution Explorer.
2. Select Properties in the pop up menu.
3. Set the Wrapper Assembly Key File property as the strong name key file
used by the application in the AssemblyInfo.cs file.
4. Click OK.

HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
Back
Top