Use a publicizer such as BepInEx.AssemblyPublicizer.MSBuild or Krafs.Publicizer.
They allow full access to the target reference as if everything is public.
They can also create "stripped" versions of assemblies similar to a ref library.
P.S. Sorry for the necro, but this comes up as one of the first Google results.