Skip to content

Commit ac97007

Browse files
committed
Use VersionBandForManifestPackages for CI/dev versions
1 parent 7a66289 commit ac97007

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/tasks/WorkloadBuildTasks/InstallWorkloadFromArtifacts.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,10 @@ private bool InstallWorkloadManifest(ITaskItem workloadId, string name, string v
298298
string outputDir = FindSubDirIgnoringCase(manifestVersionBandDir, name);
299299
// regex matching the version band, e.g. 6.0.100-preview.3.21202.5 => 6.0.100-preview.3
300300
string bandVersion = bandVersionRegex().Match(version).Value;
301+
// use VersionBandForManifestPackages for CI/dev builds
302+
// ideally we could compare against PackageVersion but that isn't available in the task
303+
if (bandVersion.EndsWith("-ci") || bandVersion.EndsWith("-dev"))
304+
bandVersion = VersionBandForManifestPackages;
301305

302306
PackageReference pkgRef = new(Name: $"{name}.Manifest-{bandVersion}",
303307
Version: version,

0 commit comments

Comments
 (0)