Skip to content

Additional Properties #68

@Sella-GH

Description

@Sella-GH

Hello,

just discovered this little lib and I am kind of glad to use this to avoid reflection in the final app.

Still got a feature request for additional properties tho but I am not sure if it's useful in the scope of "build information".

Would it be possible to add the Copyright and Authors properties? Via reflection you would access them like this:

public static readonly Assembly ExecutingAssembly = Assembly.GetExecutingAssembly();

public static string GetAppCopyright
    => ExecutingAssembly.GetCustomAttribute<AssemblyCopyrightAttribute>()?.Copyright ?? "Unknown";

public static string GetAppAuthors
    => ExecutingAssembly.GetCustomAttribute<AssemblyCompanyAttribute>()?.Company ?? "authors not found";

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions