Created
July 1, 2015 11:52
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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