Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitThisAssemblyMetadata documentation is confusing #152

Closed
daiplusplus opened this issue Apr 22, 2021 · 2 comments · Fixed by #153
Closed

GitThisAssemblyMetadata documentation is confusing #152

daiplusplus opened this issue Apr 22, 2021 · 2 comments · Fixed by #153

Comments

@daiplusplus
Copy link
Contributor

The documentation for GitThisAssemblyMetadata is a tad confusing because of the use of double-negatives and the word "only". To a lesser extent the documentation for GitThisAssembly could be improved too.

Currently it's this:

$(GitThisAssembly):
set to 'false' to prevent assembly metadata and constants generation.

$(GitThisAssemblyMetadata):
set to 'false' to prevent assembly metadata generation only. Defaults to 'false'.

I propose changing it to this:

$(GitThisAssembly):

  • Enables or Disables class ThisAssembly for this project's output assembly.
    • Set to 'true' to generate class ThisAssembly containing const strings.
    • Set to 'false' to not generate anything for this project.
  • Defaults to false (i.e. GitInfo is opt-in).

$(GitThisAssemblyMetadata):

  • Enables or Disables [assembly: AssemblyMetadata("GitInfo...")] for this project's output assembly. Note that the $(GitThisAssembly) property must also be set to 'true` for this property to take effect.
    • Set to 'true' to generate [assembly: AssemblyMetadata("GitInfo...")] assembly attributes at compile-time.
    • Set to 'false' to not generate any [assembly: AssemblyMetadata("GitInfo...")] assembly attributes - only class ThisAssembly will be generated.
  • Defaults to 'false' (i.e. [assembly: AssemblyMetadata("GitInfo...")] assembly attributes are not generated by default, even when $(GitThisAssembly) is enabled).
@kzu
Copy link
Member

kzu commented Apr 30, 2021

makes perfect sense, love the proposed change. could you plz send a PR?

thanks!

@daiplusplus
Copy link
Contributor Author

@kzu I submitted a PR - any issues so far?

kzu pushed a commit that referenced this issue May 9, 2021
@devlooped devlooped locked and limited conversation to collaborators Sep 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants