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
Build tasks sets the wrong default value to the parameter $ModuleVersion #130
Comments
The property Below is the different output from GitVersion: {
"Major":0,
"Minor":102,
"Patch":1,
"PreReleaseTag":"fix.1",
"PreReleaseTagWithDash":"-fix.1",
"PreReleaseLabel":"fix",
"PreReleaseNumber":1,
"WeightedPreReleaseNumber":30001,
"BuildMetaData":1,
"BuildMetaDataPadded":"0001",
"FullBuildMetaData":"1.Branch.fix-debug-moduleversion.Sha.8b2c7e51bec92a02a9dfe50c6cdf822e0bca7853",
"MajorMinorPatch":"0.102.1",
"SemVer":"0.102.1-fix.1",
"LegacySemVer":"0.102.1-fix1",
"LegacySemVerPadded":"0.102.1-fix0001",
"AssemblySemVer":"0.102.1.0",
"AssemblySemFileVer":"0.102.1.0",
"FullSemVer":"0.102.1-fix.1+1",
"InformationalVersion":"0.102.1-fix0001+Sha.8b2c7e51bec92a02a9dfe50c6cdf822e0bca7853.Date.2020-02-16",
"BranchName":"fix/debug-moduleversion",
"Sha":"8b2c7e51bec92a02a9dfe50c6cdf822e0bca7853",
"ShortSha":"8b2c7e5",
"NuGetVersionV2":"0.102.1-fix0001",
"NuGetVersion":"0.102.1-fix0001",
"NuGetPreReleaseTagV2":"fix0001",
"NuGetPreReleaseTag":"fix0001",
"VersionSourceSha":"620146aa945dde57c6c4243261feaf0727b69806",
"CommitsSinceVersionSource":1,
"CommitsSinceVersionSourcePadded":"0001",
"CommitDate":"2020-02-16"
} |
Instead of building the path with the module version 1.0.0 it building the path using the informational version outputted from gitversion, e.g.
1.0.0-add-resource0001+Sha.a60d7ff1210a7eea658d3d3e02fea70a5a2c78c7.Date.2020-02-14
.Change all build tasks to replace the property
InformationalVersion
with the propertyMajorMinorPatch
. If theInformationalVersion
need to be used, then that should be set in another parameter.This need to be consequent through the build tasks, otherwise it can have consequences in external build tasks like dsccommunity/DscResource.DocGenerator#17.
The text was updated successfully, but these errors were encountered: