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

Add implicit conversion from MinVerVersion to String #2

Closed
augustoproiete opened this issue Nov 19, 2020 · 0 comments · Fixed by #4
Closed

Add implicit conversion from MinVerVersion to String #2

augustoproiete opened this issue Nov 19, 2020 · 0 comments · Fixed by #4
Milestone

Comments

@augustoproiete
Copy link
Member

To simplify passing the version as argument to the different tools in the build pipeline (e.g. dotnet build, dotnet pack, etc.).

var version = MinVer();

// Currently
var customVersion1 = BuildCustomVersion(version.Version);
var customVersion2 = BuildCustomVersion(version.ToString());

// Desired:
var customVersion2 = BuildCustomVersion(version);

// ---

static string BuildCustomVersion(string versionString)
{
    // ...
}
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 a pull request may close this issue.

1 participant