InternalsVisibleTo attribute isn't working

后端 未结 19 2523
眼角桃花
眼角桃花 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 13:55

    I'm writing this out of frustration. Make sure the assembly you are granting access to is named as you expect.

    I renamed my project but this does not automatically update the Assembly Name. Right click your project and click Properties. Under Application, ensure that the Assembly Name and Default Namespace are what you expect.

提交回复
热议问题