InternalsVisibleTo attribute isn't working

后端 未结 19 2415
眼角桃花
眼角桃花 2020-11-27 13:51

I am trying to use the InternalsVisibleTo assembly attribute to make my internal classes in a .NET class library visible to my unit test project. For some reas

相关标签:
19条回答
  • 2020-11-27 14:20

    If you have more than 1 referenced assembly - check that all necessary assemblies have InternalsVisibleTo attribute. Sometimes it's not obviously, and no message that you have to add this attribute into else one assembly.

    0 讨论(0)
提交回复
热议问题