File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -189,7 +189,7 @@ task CreateBuildInfo -Before Build {
189189 $buildOrigin = $env: PSES_BUILD_ORIGIN
190190 }
191191
192- [string ]$buildTime = [datetime ]::Now .ToString(" s" , [System.Globalization.CultureInfo ]::InvariantCulture)
192+ [string ]$buildTime = [datetime ]::Today .ToString(" s" , [System.Globalization.CultureInfo ]::InvariantCulture)
193193
194194 $buildInfoContents = @"
195195using System.Globalization;
@@ -206,7 +206,10 @@ namespace Microsoft.PowerShell.EditorServices.Hosting
206206}
207207"@
208208
209- Set-Content - LiteralPath $script :BuildInfoPath - Value $buildInfoContents - Force
209+ if (Compare-Object $buildInfoContents.Split ([Environment ]::NewLine) (Get-Content $script :BuildInfoPath )) {
210+ Write-Host " Updating Build Info"
211+ Set-Content - LiteralPath $script :BuildInfoPath - Value $buildInfoContents - Force
212+ }
210213}
211214
212215task SetupHelpForTests {
You can’t perform that action at this time.
0 commit comments