mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-04-24 19:01:45 +08:00

this is intended to create nightly build with package versions of the form x.y.z-yyyyMMdd.sha and push them to nuget automatically, only where there are new changes per day. since devops is a nightmare and entirely untestable we will have to go through 20 iterations to actually get this to work
22 lines
648 B
PowerShell
22 lines
648 B
PowerShell
param (
|
|
[Parameter(Position = 0, mandatory = $true)]
|
|
[string]$version
|
|
)
|
|
|
|
$root = (Split-Path -parent $PSCommandPath)
|
|
|
|
$projs = Get-ChildItem "$root/../src" -Recurse | Where-Object { $_.extension -eq ".csproj" -and $_.name.IndexOf("Tests") -lt 0 }
|
|
$projs | ForEach-Object {
|
|
$xml = New-Object XML
|
|
$xml.Load($_.FullName)
|
|
$xml.Project.PropertyGroup[0].Version = $version
|
|
$xml.Save($_.FullName)
|
|
}
|
|
|
|
$packageProjectPath = "$root/UglyToad.PdfPig.Package/UglyToad.PdfPig.Package.csproj"
|
|
$xml = New-Object XML
|
|
$xml.Load($packageProjectPath)
|
|
$xml.Project.PropertyGroup[0].Version = $version
|
|
$xml.Save($packageProjectPath)
|
|
|
|
Write-Host $projs.Length |