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 {
105105task GetProductVersion - Before PackageNuGet, PackageModule, UploadArtifacts {
106106 [xml ]$props = Get-Content .\PowerShellEditorServices.Common.props
107107
108+ $script :BuildNumber = 9999
108109 $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 ) "
111110
112111 if ($env: APPVEYOR ) {
113112 $script :BuildNumber = $env: APPVEYOR_BUILD_NUMBER
114- $script :FullVersion = " $script :FullVersion -$script :BuildNumber "
113+ }
114+
115+ if ($script :VersionSuffix -ne $null ) {
115116 $script :VersionSuffix = " $script :VersionSuffix -$script :BuildNumber "
116117 }
118+ else {
119+ $script :VersionSuffix = " $script :BuildNumber "
120+ }
121+
122+ $script :FullVersion = " $ ( $props.Project.PropertyGroup.VersionPrefix ) -$script :VersionSuffix "
117123
118124 Write-Host " `n ### Product Version: $script :FullVersion `n " - ForegroundColor Green
119125}
You can’t perform that action at this time.
0 commit comments