.netinternalsvisibletosn.exe

Can't get the full public key for 4.0 beta 2 assemblies


I'm having an issue getting the public keys for some of the .net 4.0 beta 2 assemblies so I can make my internals visible to them (gross).

Normally, I'd just pop into SN.EXE and poof I'd have them.

But instead of getting what I'd normally expect I'm getting a bogus public key, and I'm not sure exactly why.

I'm using the 64bit version of SN

C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\x64>sn.exe

I'm using it against the 64bit version of the dll I'm targeting:

C:\Windows\Microsoft.NET\Framework64\v4.0.21006\system.xaml.dll

and I'm getting this as my output:

Public key is 00000000000000000400000000000000

Public key token is b77a5c561934e089

The token is correct, but the public key is BS. What's going on here??


Solution

  • That's the ECMA public key. See http://blogs.msdn.com/shawnfa/archive/2004/06/09/152097.aspx