G
Guest
I want to know if I can use the Retargetable attribute for my own assemblies.
I want to be able to run my Compact Framework assemblies on the desktop, but
I need to make a different assembly for the desktop but with the same
contract. The new assembly will have a different public key. So, my idea is
to tag this assembly has Retargetable. I put the flags in the assembly :
([assembly: AssemblyFlags((int)(AssemblyNameFlags.PublicKey |
AssemblyNameFlags.Retargetable))]
I see in the IL that the assembly is retargetable.
But now when I run on the desktop, I receive a error that the assembly is
not valid.
In brief: How can I use the Retargetable flag for my own assemblies? And how
the CLR know which public key correspond to the other? I want to do the
exactly same thing the Compact Framework assemblies do with Retargetable.
Thanks in advance.
I want to be able to run my Compact Framework assemblies on the desktop, but
I need to make a different assembly for the desktop but with the same
contract. The new assembly will have a different public key. So, my idea is
to tag this assembly has Retargetable. I put the flags in the assembly :
([assembly: AssemblyFlags((int)(AssemblyNameFlags.PublicKey |
AssemblyNameFlags.Retargetable))]
I see in the IL that the assembly is retargetable.
But now when I run on the desktop, I receive a error that the assembly is
not valid.
In brief: How can I use the Retargetable flag for my own assemblies? And how
the CLR know which public key correspond to the other? I want to do the
exactly same thing the Compact Framework assemblies do with Retargetable.
Thanks in advance.