Create a strong name for an Assembly for without original source code?
Posted on 2004-08-16
I've inherited a component that has a reference to a .NET assembly that does not have a strong name. I do not have the source code for the referenced assembly but wish to make it strongly named. The reason for this is that I keep getting the following error when calling this component which contains a reference to an assembly which is not strongly named:
TestHarness.exe is an executable that contains a reference to a strongly named dot net assembly called Foo.dll
Foo.dll contains a reference to a .NET assembly 'Bar' which is not strongly named.
An unhandled exception of type 'System.IO.FileLoadException' occurred in TestHarness.exe
Additional information: The located assembly 'Bar' is not strongly named.
Is it possible to generate a strong name for a .NET component without having the source-code? I've seen some command line tools and tried sn.exe etc but none seem to be able to do this.
I thought a workaround would be to make the referenced assembly strongly named but I do not have the source code.
Or is there another way around this problem using code?
500 points on offer for a solution to put me out of my misery!