PdfPig/tools/set-package-nightly.ps1
Eliot Jones 2366d22719 move nightly builds to separate package id
while nightly builds are useful they also cause
a large amount of spam on the main project
nuget. here we try to change the package id
so that it will be hosted as a separate package
while having all the same code and namespaces
this means people can opt into the nightly builds
while keeping the version history of the released
package tidy.

no idea if this will work because actions and
yaml is my idea of hell and is impossible to
debug, but let's give it a go
2023-06-05 21:48:02 +01:00

14 lines
397 B
PowerShell

param (
)
$root = (Split-Path -parent $PSCommandPath)
$packageProjectPath = "$root/UglyToad.PdfPig.Package/UglyToad.PdfPig.Package.csproj"
$xml = New-Object XML
$xml.Load($packageProjectPath)
$xml.Project.PropertyGroup[0].PackageId = "PdfPig.Nightly"
$xml.Project.PropertyGroup[0].Title = "PdfPig.Nightly"
$xml.Project.PropertyGroup[0].Product = "PdfPig.Nightly"
$xml.Save($packageProjectPath)