Skip to content

Commit

Permalink
Use VersionBandForManifestPackages for CI/dev versions
Browse files Browse the repository at this point in the history
  • Loading branch information
lewing committed Jul 19, 2023
1 parent 7a66289 commit ac97007
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tasks/WorkloadBuildTasks/InstallWorkloadFromArtifacts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,10 @@ private bool InstallWorkloadManifest(ITaskItem workloadId, string name, string v
string outputDir = FindSubDirIgnoringCase(manifestVersionBandDir, name);
// regex matching the version band, e.g. 6.0.100-preview.3.21202.5 => 6.0.100-preview.3
string bandVersion = bandVersionRegex().Match(version).Value;
// use VersionBandForManifestPackages for CI/dev builds
// ideally we could compare against PackageVersion but that isn't available in the task
if (bandVersion.EndsWith("-ci") || bandVersion.EndsWith("-dev"))
bandVersion = VersionBandForManifestPackages;

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

0 comments on commit ac97007

Please sign in to comment.