Publicizing Specific Members on nested types
Closed this issue · 1 comments
StarFluxGames commented
Currently trying to target a private struct
nested inside a public class
with the following
Kitchen.Common:Kitchen.PlayerCosmeticSubview.AttachmentPoint
.
Continuing to get the CS0122 inaccessible error.
krafs commented
Publicizer mostly references members by their names in Reflection. In the case of nested types there is a +
-sign before the nested type, which in your case would be:
<ItemGroup>
<Publicize Include="Kitchen.Common:Kitchen.PlayerCosmeticSubview+AttachmentPoint" />
</ItemGroup>
There are other examples, like how to reference constructors: Kitchen.PlayerCosmeticSubview..ctor
.
I can see if I can add something to the README about this. Thanks for bringing it up!
And let me know if you still can't get it working.