C#C
C#4y ago
An.C

✅ Can't get `InternalsVisibleTo` to work

From assembly (project) A.B I added the following in a file
using System.Runtime.CompilerServices;

[assembly: InternalsVisibleTo("A.B.Tests")]

namespace MyNamespace
{
    internal class MyClass {}
}

But the assembly A.B.Test can't see MyClass.
Is there something extra that I should do?
Was this page helpful?