mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-06-28 15:30:17 +08:00

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
14 lines
397 B
PowerShell
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) |