Skip to content

Commit

Permalink
AppVeyor appears to have an outdated version of PowerShell, working a…
Browse files Browse the repository at this point in the history
…round that
  • Loading branch information
CaiB committed Apr 22, 2023
1 parent 8feb8a1 commit 72a5748
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions GenBuildInfo.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ Write-Host "Putting default config hash into file '$ConfigHashFile'.";

[string] $Hash = (Get-FileHash $ConfigFile -Algorithm 'MD5').Hash;

$HashObj = New-Object -TypeName 'System.Security.Cryptography.MD5CryptoServiceProvider'
$FileStream = [System.IO.File]::Open((Resolve-Path $ConfigFile), [System.IO.FileMode]::Open, [System.IO.FileAccess]::Read, [System.IO.FileShare]::ReadWrite)
try { [System.BitConverter]::ToString($HashObj.ComputeHash($FileStream)) }
finally { $FileStream.Dispose() }

$Class =
@"
namespace ColorChord.NET.Config;
Expand Down

0 comments on commit 72a5748

Please sign in to comment.