-
Notifications
You must be signed in to change notification settings - Fork 317
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
Support package with SemVer2 version with buildMetadata #543
Support package with SemVer2 version with buildMetadata #543
Conversation
b154f35
to
6be732b
Compare
6be732b
to
ccc2c66
Compare
/// Initializes a new instance of the <see cref="SemVer2Version" /> struct. | ||
/// </summary> | ||
/// <param name="dummy">Dummy to allow calling this constructor.</param> | ||
public SemVer2Version(bool dummy) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe a better option would be a static SemVer2Version Create()
method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I never used struct
in a old C# language version where there Default constructor is not supported.
I just didn't hat that in mind. If you like you can change it.
/// </summary> | ||
/// <param name="withBuildMetadata">If <c>true</c> the <see cref="buildMetadata" /> is included.</param> | ||
/// <returns>The formatted string.</returns> | ||
public string ToString(bool withBuildMetadata = false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is reporting a warning Method with optional parameter is hidden by overload
. Is there a reason this parameter is optional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No you can remove the = false
. I need to install ReSharper 😄
Fixes: #540