You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How about using a const string instead of a static string in the generated GitVersionInformation.cs? This would make it possible to use the values in attributes such as
(The only point in favor of static readonly string would be that const string gets inlined at compile-time. But since the whole class is private you cannot reference this information from a foreign assembly anyway...)
It's a breaking change for those using reflection, though. Anyway, prior to a final release this is acceptable and I assume only a few people to be affected. And the benefits outweigh the drawbacks by far.
This issue has been automatically marked as stale because it has not had recent activity. After 30 days from now, it will be closed if no further activity occurs. Thank you for your contributions.
How about using a
const string
instead of astatic string
in the generatedGitVersionInformation.cs
? This would make it possible to use the values in attributes such ashttps://github.com/GitTools/GitVersion/blob/master/src/GitVersionCore/GitVersionInformationResources/AddFormats/GitVersionInformation.cs
The text was updated successfully, but these errors were encountered: