You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
This discussion was converted from issue #2560 on March 14, 2025 18:59.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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
topublic
it’s all working fine.Is this expected/working as designed? Or is there a way to make internal objects accessible to Python code?
Beta Was this translation helpful? Give feedback.
All reactions