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

Support package with SemVer2 version with buildMetadata #543

Merged

Conversation

JoC0de
Copy link
Collaborator

@JoC0de JoC0de commented Jul 22, 2023

Fixes: #540

@JoC0de JoC0de force-pushed the feature/support-semver2-build-metadata branch 3 times, most recently from b154f35 to 6be732b Compare July 23, 2023 12:35
@JoC0de JoC0de force-pushed the feature/support-semver2-build-metadata branch from 6be732b to ccc2c66 Compare July 23, 2023 12:38
@JoC0de JoC0de merged commit 08b6932 into GlitchEnzo:master Jul 23, 2023
@JoC0de JoC0de deleted the feature/support-semver2-build-metadata branch July 23, 2023 16:03
@JoC0de JoC0de mentioned this pull request Jul 24, 2023
/// 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)
Copy link
Collaborator

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?

Copy link
Collaborator Author

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)
Copy link
Collaborator

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?

Copy link
Collaborator Author

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 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SemVer 2 versions format
2 participants