In dotnet 5+ you can add this to the target .csproj file.
<ItemGroup> <InternalsVisibleTo Include="Project.That.Wants.To.See.Internals" /> </ItemGroup>