Skip to content

Commit aa32b53

Browse files
author
Prathik Rao
committed
pre
1 parent 9c3f001 commit aa32b53

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/build-cs-steps.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,13 @@ jobs:
131131
$useWinML = "${{ inputs.useWinML }}"
132132
$coreVersion = "${{ env.FOUNDRY_CORE_VERSION }}"
133133
134+
# If we are using a nightly core version (which is a prerelease),
135+
# we must ensure our package version is also marked as prerelease to avoid NU5104.
136+
if (-not [string]::IsNullOrWhiteSpace($coreVersion) -and -not $version.Contains("dev")) {
137+
$version = "$version-dev"
138+
Write-Host "Updating package version to $version to match prerelease dependency."
139+
}
140+
134141
Write-Host "Packing project: $projectPath"
135142
Write-Host "Output directory: $outputDir"
136143
Write-Host "Version: $version"

0 commit comments

Comments
 (0)