Tuesday, August 27, 2019

How to make internal class assembly exposed to specific assembly use InternalsVisibleTo

Important thing to note, internal assembly if stronly typed then you have to mention the public key as well.

Assembly A- A.dll  have internal class = I
Assembly B- B.dll can access internal class .

In Assembly A , .net go to property file and update this line

assembly: InternalsVisibleTo("A.I")

No comments :