Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions CultureList/PowerShell/GenBuildInfo.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ $nowUTC = (Get-Date).ToUniversalTime().ToString('yyyy/MM/dd HH:mm:ss')
$class =
"// Copyright (c) Tim Kennedy. All Rights Reserved. Licensed under the MIT License.

// This file is generated during a pre-build event by PowerShell\GenBuildInfo.ps1.
// This file is generated during build by PowerShell\GenBuildInfo.ps1.
// Any edits to this file will be overwritten during the next build!

namespace $assemblyName;
Expand All @@ -30,9 +30,10 @@ internal static class BuildInfo

public static readonly string BuildDateStringUtc = $`"{BuildDateUtc:f} (UTC)`";

public static readonly string VersionString = string.IsNullOrWhiteSpace(Prerelease)
public static readonly string VersionString = string.IsNullOrWhiteSpace(Prerelease)
? VersionInfo.Version
: $"{VersionInfo.Version}-{Prerelease}";}"
: $`"{VersionInfo.Version}-{Prerelease}`";
Comment thread
Timthreetwelve marked this conversation as resolved.
}"

$outputPath = Join-Path -Path $(Get-Location).Path -ChildPath $outputFile
Set-Content -Path "$outputPath" -Value $class -Encoding utf8BOM