I have been trying to get the internalsVisibleTo attribute working and it's really getting me cross, because I'm sure I'm doing it as per instructions
Basically I have made myself
1. a test application (in windows, but it should equally apply to asp.net) called mynamespace.internalsUser and signed it with a strong name key.
- a simple demo class (also signed with a string name key) called mynamespace.internalsExposer, with line below added
<Assembly: InternalsVisibleTo("mynamespace.InternalsUser,PublicKey=00240000....etc")>.in it
I'm pretty sure this bit's right because if you get the key wrong, the thing won't compile. But the calling application still can't see the private variables as it should
Source code is as follows
InternalsExposer One class - class1.vb
Imports System.Runtime.CompilerServices
<Assembly: InternalsVisib ...
Go to the complete details ...