My .NET class library has an internal class that I want to use from Python.
I tried various variations of InternalsVisibleTo on the C# end (had hoped that <InternalsVisibleTo Include="Python.Runtime" /> in the csproj would be enough), but cannot get it to work.
Once I change the class from internal to public it’s all working fine.
Is this expected/working as designed? Or is there a way to make internal objects accessible to Python code?
My .NET class library has an
internal classthat I want to use from Python.I tried various variations of
InternalsVisibleToon the C# end (had hoped that<InternalsVisibleTo Include="Python.Runtime" />in the csproj would be enough), but cannot get it to work.Once I change the class from
internaltopublicit’s all working fine.Is this expected/working as designed? Or is there a way to make internal objects accessible to Python code?