CommandLineUtils icon indicating copy to clipboard operation
CommandLineUtils copied to clipboard

VersionOptionFromAssemblyAttributes - no documentation for template

Open digitaldias opened this issue 2 years ago • 1 comments

I'm setting up a small app and wanted to customize the version string returned by --version. I need help finding where in the documentation the template argument's content should look like. Currently, I have this:

app.VersionOptionFromAssemblyAttributes("", Assembly.GetExecutingAssembly());

Which, of course, won't work! :)

Can someone please advise?

digitaldias avatar Jun 11 '23 04:06 digitaldias

Checkout how app.VersionOptionFromAssemblyAttributes is implemented. It's a helper method that just calls .VersionOption. If you want to customize things, use .VersionOption instead https://github.com/natemcmaster/CommandLineUtils/blob/81199c7ec68367ea9612be55719dc1fe08f658da/src/CommandLineUtils/CommandLineApplicationExtensions.cs#L145-L182

natemcmaster avatar Jun 25 '23 18:06 natemcmaster

This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Please comment if you believe this should remain open, otherwise it will be closed in 14 days. Thank you for your contributions to this project.

github-actions[bot] avatar Jun 25 '24 01:06 github-actions[bot]

Closing due to inactivity. If you are looking at this issue in the future and think it should be reopened, please make a commented here and mention natemcmaster so he sees the notification.

github-actions[bot] avatar Jul 09 '24 01:07 github-actions[bot]