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

Generate internal class #2

Closed
Closed

Description

@mkaring

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.

Activity

  1. ycanardeau commented on Nov 24, 2021

    @ycanardeau
    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.

  2. ycanardeau commented on Nov 25, 2021

    @ycanardeau
    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.

  3. mkaring commented on Nov 25, 2021

    @mkaring
    Author

    That works perfectly. Thank you for the support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions