Skip to content

Commit 0560968

Browse files
author
Friedrich Weinmann
committed
bugfix build action
1 parent 71a826e commit 0560968

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

PSFramework/PSFramework.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
RootModule = 'PSFramework.psm1'
66

77
# Version number of this module.
8-
ModuleVersion = '0.10.27.135'
8+
ModuleVersion = '0.10.28.144'
99

1010
# ID used to uniquely identify this module
1111
GUID = '8028b914-132b-431f-baa9-94a6952f21ff'

build/vsts-build.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ foreach ($line in (Get-Content "$($PSScriptRoot)\filesAfter.txt" | Where-Object
6161
#endregion Gather text data to compile
6262

6363
#region Update the psm1 file
64-
$fileData = Get-Content -Path "$($publishDir.FullName)\PSFramework\PSFramework.psm1" -Raw
65-
$fileData = $fileData -replace '"<was not compiled>"', '"<was compiled>"'
66-
$fileData = $fileData -replace '"<compile code into here>"', ($text -join "`n`n")
64+
$fileData = [System.IO.File]::ReadAllText("$($publishDir.FullName)\PSFramework\PSFramework.psm1")
65+
$fileData = $fileData.Replace('"<was not compiled>"', '"<was compiled>"')
66+
$fileData = $fileData.Replace('"<compile code into here>"', ($text -join "`n`n"))
6767
[System.IO.File]::WriteAllText("$($publishDir.FullName)\PSFramework\PSFramework.psm1", $fileData, [System.Text.Encoding]::UTF8)
6868
#endregion Update the psm1 file
6969

0 commit comments

Comments
 (0)