File tree 1 file changed +5
-2
lines changed
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 {
189
189
$buildOrigin = $env: PSES_BUILD_ORIGIN
190
190
}
191
191
192
- [string ]$buildTime = [datetime ]::Now .ToString(" s" , [System.Globalization.CultureInfo ]::InvariantCulture)
192
+ [string ]$buildTime = [datetime ]::Today .ToString(" s" , [System.Globalization.CultureInfo ]::InvariantCulture)
193
193
194
194
$buildInfoContents = @"
195
195
using System.Globalization;
@@ -206,7 +206,10 @@ namespace Microsoft.PowerShell.EditorServices.Hosting
206
206
}
207
207
"@
208
208
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
+ }
210
213
}
211
214
212
215
task SetupHelpForTests {
You can’t perform that action at this time.
0 commit comments