File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -105,15 +105,21 @@ task Clean {
105
105
task GetProductVersion - Before PackageNuGet, PackageModule, UploadArtifacts {
106
106
[xml ]$props = Get-Content .\PowerShellEditorServices.Common.props
107
107
108
+ $script :BuildNumber = 9999
108
109
$script :VersionSuffix = $props.Project.PropertyGroup.VersionSuffix
109
- $script :BaseVersion = " $ ( $props.Project.PropertyGroup.VersionPrefix ) -$ ( $props.Project.PropertyGroup.VersionSuffix ) "
110
- $script :FullVersion = " $ ( $props.Project.PropertyGroup.VersionPrefix ) -$ ( $props.Project.PropertyGroup.VersionSuffix ) "
111
110
112
111
if ($env: APPVEYOR ) {
113
112
$script :BuildNumber = $env: APPVEYOR_BUILD_NUMBER
114
- $script :FullVersion = " $script :FullVersion -$script :BuildNumber "
113
+ }
114
+
115
+ if ($script :VersionSuffix -ne $null ) {
115
116
$script :VersionSuffix = " $script :VersionSuffix -$script :BuildNumber "
116
117
}
118
+ else {
119
+ $script :VersionSuffix = " $script :BuildNumber "
120
+ }
121
+
122
+ $script :FullVersion = " $ ( $props.Project.PropertyGroup.VersionPrefix ) -$script :VersionSuffix "
117
123
118
124
Write-Host " `n ### Product Version: $script :FullVersion `n " - ForegroundColor Green
119
125
}
You can’t perform that action at this time.
0 commit comments