Skip to content

Commit

Permalink
Fixed prerelease
Browse files Browse the repository at this point in the history
  • Loading branch information
dannoe committed Jul 14, 2024
1 parent 31adf5b commit 203085a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions scripts/Package-ALVsixAsNuget.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
param (
[Parameter(Mandatory)]
[switch] $PreRelease = $true,
[switch] $Prerelease = $true,
[Parameter(Mandatory)]
[string] $Version,
[Parameter(Mandatory)]
Expand Down Expand Up @@ -54,6 +54,12 @@ Get-ChildItem -Path (Join-Path $tempFolder \extension\bin\win32) -Filter "*.dll"
Copy-Item -Path $_.FullName -Destination ..\src\ALC.Analyzer.Dlls\libs\
}

dotnet pack ..\src\ALC.Analyzer.Dlls\ -p:PackageVersion=$($Version) --output ..\artifacts
$VersionSuffix = ""
if ($Prerelease)
{
$VersionSuffix = "prerelease"
}

dotnet pack ..\src\ALC.Analyzer.Dlls\ -p:PackageVersion=$($Version) --version-suffix $VersionSuffix --output ..\artifacts

Remove-Item -Path $tempFolder -Force -ErrorAction SilentlyContinue -Recurse

0 comments on commit 203085a

Please sign in to comment.