© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
73 replies
An.C

✅ Can't get `InternalsVisibleTo` to work

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

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

namespace MyNamespace
{
    internal class MyClass {}
}
using System.Runtime.CompilerServices;

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

namespace MyNamespace
{
    internal class MyClass {}
}

But the assembly
A.B.Test
A.B.Test
can't see
MyClass
MyClass
.
Is there something extra that I should do?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
Next page

Similar Threads

❔ Can't get the source generators tutorial to work
C#CC# / help
3y ago
✅ Can't get HTTPS to work for my api deployment.
C#CC# / help
14mo ago
MVC project. Can't get my create Book to work.
C#CC# / help
15mo ago
I followed a guide and I can't get it to work!
C#CC# / help
2y ago