We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c3f001 commit aa32b53Copy full SHA for aa32b53
.github/workflows/build-cs-steps.yml
@@ -131,6 +131,13 @@ jobs:
131
$useWinML = "${{ inputs.useWinML }}"
132
$coreVersion = "${{ env.FOUNDRY_CORE_VERSION }}"
133
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
+
141
Write-Host "Packing project: $projectPath"
142
Write-Host "Output directory: $outputDir"
143
Write-Host "Version: $version"
0 commit comments