Questions tagged «internalsvisibleto»

19
InternalsVisibleTo属性不起作用
我试图使用InternalsVisibleToAssembly属性使.NET类库中的内部类对我的单元测试项目可见。由于某种原因,我不断收到一条错误消息,内容为: “ MyClassName”由于其保护级别而无法访问 两个程序集均已签名,并且属性声明中列出了正确的键。有任何想法吗?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.