Sometimes the MinVer generated version is the starting point to generate other (custom) representations of version(s), which may or may not be SemVer-compliant.
var version = MinVer();
string customVersion1 = null; // Initialized via Setup
string customVersion2 = null; // Initialized via Setup
Task("build")
.Does(() =>
{
// use customVersion1
// use customVersion2
});
Setup(context =>
{
customVersion1 = BuildCustomVersion(version, "A");
customVersion2 = BuildCustomVersion(version, "B");
}
It would be nice if we could have something like this instead:
var version = MinVer();
Task("build")
.Does(() =>
{
// use version["custom1"]
// use version["custom2"]
});
Setup(context =>
{
version["custom1"] = BuildCustomVersion(version, "A");
version["custom2"] = BuildCustomVersion(version, "B");
}
Sometimes the MinVer generated version is the starting point to generate other (custom) representations of version(s), which may or may not be SemVer-compliant.
It would be nice if we could have something like this instead: