try creating a nightly push to nuget script v1

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
This commit is contained in:
Eliot Jones
2021-08-14 13:01:46 -04:00
parent 53471207df
commit 165bc74c53
5 changed files with 75 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
param (
[Parameter(Position=0,mandatory=$true)]
[Parameter(Position = 0, mandatory = $true)]
[string]$version
)
@@ -12,4 +12,11 @@ $projs | ForEach-Object {
$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