I have created a library project that uses several NuGet packages. When I load my library into another project as a reference, the outer project can see and call all the references that my library uses.
MyLib.csproj
<PackageReference Include="System.Drawing.Common">
<Version>5.0.3</Version>
</PackageReference>
Apparently that the project that uses MyLib
has access to System.Drawing.Text
, for example, as well.
Is there any way to hide public
classes of references in MyLib
, so the outer project will not be able to see them?