Skip to content
This repository has been archived by the owner on Mar 29, 2023. It is now read-only.

Generate internal class #2

Closed
mkaring opened this issue Nov 23, 2021 · 3 comments
Closed

Generate internal class #2

mkaring opened this issue Nov 23, 2021 · 3 comments

Comments

@mkaring
Copy link

mkaring commented Nov 23, 2021

Hello,
do you have any plans on adding the possibility to select if the generated code should have public or internal visibility? Most of my use-cases do not require public visible access to the resources and so I would really like to be able to change the visibility to avoid cluttering the public API.

Either a global property or a metadata entry for each file would be most suited to handle this I think.

@ycanardeau
Copy link
Contributor

I've added an option ResXFileCodeGenerator_PublicClass to select if the generated code should have public or internal visibility. I haven't pushed the changes yet, but I'll publish a NuGet package tomorrow if possible.

@ycanardeau
Copy link
Contributor

Now VocaDb.ResXFileCodeGenerator generates internal classes by default. You can change this behavior by setting
PublicClass (per file) or ResXFileCodeGenerator_PublicClass (globally) to true. For more information, see README.md.

@mkaring
Copy link
Author

mkaring commented Nov 25, 2021

That works perfectly. Thank you for the support.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants