Geeks With Blogs
Annie Bougie October 2008 Entries
InternalsVisibleTo with Strongly-Type Assemblies
For testing, I often use the InternalsVisibleTo for my unit tests. It looks like this: [assembly: InternalsVisibleTo("MyProje... When the assembly is strongly typed, though, this simple statement will not work, and we get the following message: Error: "Strong-name signed assemblies must specify a public key in their InternalsVisibleTo declarations" To fix this, you must do two things: You must sign the test assembly, and you must include the public key in the InternalsVisibleTo statement. ......

Posted On Wednesday, October 1, 2008 2:18 AM

Copyright © Annie Bougie | Powered by: