mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-10-07 16:14:03 +08:00

* remove alpha postfix, releases will increment version * update the master build job to draft a release * add publish action to publish full release * enable setting assembly and file version * bump assembly and file version for package project --------- Co-authored-by: BobLd <38405645+BobLd@users.noreply.github.com>
8 lines
361 B
PowerShell
8 lines
361 B
PowerShell
$xml = New-Object XML
|
|
$projectPath = Join-Path $PSScriptRoot "UglyToad.PdfPig.Package\UglyToad.PdfPig.Package.csproj"
|
|
$xml.Load($projectPath)
|
|
$current = $xml.Project.PropertyGroup[0].Version
|
|
$hyphenIndex = $current.IndexOf('-')
|
|
$len = If ($hyphenIndex -lt 0) { $current.Length } Else { $hyphenIndex }
|
|
$version = $current.Substring(0, $len)
|
|
Write-Output $version |