Skip to content

Commit

Permalink
(build) Switch back to assembly version number
Browse files Browse the repository at this point in the history
The ModuleVersion in the psd1 needs to be a System.Version object, so
we can't use the semantic version number that is used for the package
version number.

This commit reverts back to previous behaviour before a change was made
during automating the build through TeamCity.
  • Loading branch information
gep13 committed Apr 27, 2022
1 parent f98641b commit aa827ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BuildScripts/default.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ Task Version-Module -description 'Stamps the psd1 with the version and last chan
Get-ChildItem "$baseDir\**\*.psd1" | ForEach-Object {
$path = $_
(Get-Content $path) |
ForEach-Object {$_ -replace "^ModuleVersion = '.*'`$", "ModuleVersion = '$packageVersion'" } |
ForEach-Object {$_ -replace "^ModuleVersion = '.*'`$", "ModuleVersion = '$version'" } |
ForEach-Object {$_ -replace "^PrivateData = '.*'`$", "PrivateData = '$changeset'" } |
Set-Content $path
}
Expand Down

0 comments on commit aa827ac

Please sign in to comment.