Skip to content
Snippets Groups Projects
Commit 1b2dd2fe authored by Niko Ehrenfeuchter's avatar Niko Ehrenfeuchter :keyboard:
Browse files

Ignore when overwriting the build-details resources fails.

This usually happens when VS is building multiple projects at the same
time, hence running the prepare-script multiple times at once.
parent c74d9e66
No related branches found
No related tags found
No related merge requests found
...@@ -125,9 +125,12 @@ $Date = Get-Date -Format 'yyyy-MM-dd HH:mm:ss' ...@@ -125,9 +125,12 @@ $Date = Get-Date -Format 'yyyy-MM-dd HH:mm:ss'
$DateShort = Get-Date -Format 'yyyy.MM.dd.HHmm' $DateShort = Get-Date -Format 'yyyy.MM.dd.HHmm'
$Date | Out-File $BuildDate # use "-EA Ignore" to prevent build issues when VS is building multiple projects
$CommitName | Out-File $BCommit # at the same time that all use this script (leading to "file already in use"
$ConfigurationName | Out-File $BuildConfig # errors), where they would all produce the same output anyway:
$Date | Out-File $BuildDate -ErrorAction Ignore
$CommitName | Out-File $BCommit -ErrorAction Ignore
$ConfigurationName | Out-File $BuildConfig -ErrorAction Ignore
Write-Output $( Write-Output $(
"build-config: [$($ConfigurationName)]" "build-config: [$($ConfigurationName)]"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment