Skip to content

Instantly share code, notes, and snippets.

@lennybacon
Created July 1, 2015 11:52
Show Gist options
  • Save lennybacon/eb1af88f59fe43e62084 to your computer and use it in GitHub Desktop.
Save lennybacon/eb1af88f59fe43e62084 to your computer and use it in GitHub Desktop.
Get the public key for the InternalsVisibleTo attribute from a string name key pair file
$sn.exe –p StrongName.snk PublicKey.snk
[System.String]::Join("", ([System.IO.File]::ReadAllBytes("$pwd\PublicKey.snk") | %{ $_.ToString()}))
[System.IO.File]::Delete("$pwd\PublicKey.snk")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment