Based on useful Marvin Smit comment I tried to edit .il
files generated by ildasm.exe
and found a solution.
Opening .il
files in a text editor, the first lines of the file show references to external assemblies:
.assembly extern MY_EXT_ASSEMBLY
{
.ver 10:0:1:0
}
I changed every occurence of these references to this:
.assembly extern MY_EXT_ASSEMBLY
{
.publickeytoken = (4B DC CA FF 2F A8 6D EE )
.ver 10:0:1:0
}
Where the value of the .publickeytoken
property is found via the following command (form SDK):
sn -T MY_EXT_ASSEMBLY.dll
This should give a result as follows:
Public key token is 4bdccaff2fa86dee.
I rebuilt my VS solution and everithing compiled.