Rory Primrose

Learn from my mistakes, you don't have time to make them yourself

View project on GitHub

Getting the PublicKey for InternalsVisibleTo

Using the InternalsVisibleTo attribute is great for allowing unit tests in an external assembly to directly call types and methods marked as internal. The problem for strong named assemblies is that you need to specify the public key of the unit test assembly in the attribute declaration. I found that David Kean produced a little utility app to make life easy. Thank you very much!

Written on October 4, 2007