mirror of
https://github.com/ShareX/ShareX.git
synced 2024-07-07 23:46:00 +12:00
7 lines
263 B
PowerShell
7 lines
263 B
PowerShell
|
$content = Get-Content "D:\Dev\GitHub\ShareX\ShareX\ShareX\Properties\AssemblyInfo.cs"
|
||
|
$match = [regex]::Match($content, 'AssemblyVersion\(\"(.+?)\"\)')
|
||
|
if ($match.Success)
|
||
|
{
|
||
|
$env:AppVersion = $match.Groups[1].Value
|
||
|
}
|
||
|
Write-Host "Test: ShareX $env:AppVersion"
|