Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions eng/update-dependencies/AspireBuildUpdaterService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,16 @@ public async Task<int> UpdateFrom(Build build, CreatePullRequestOptions pullRequ
var version = dashboardAssets.First().Version;
var majorMinorVersion = VersionHelper.ResolveMajorMinorVersion(version);

// Known issue: Aspire Dashboard builds are always "preview 1".
// Passing in isStableRelease here keeps us from setting the product
// version to the full build version with the "-preview.1" suffix.
var productVersion = VersionHelper.ResolveProductVersion(version, isStableRelease: true);

List<VariableUpdateInfo> variableUpdates =
[
new VariableUpdateInfo("aspire-dashboard|build-version", version),
new VariableUpdateInfo("aspire-dashboard|product-version", VersionHelper.ResolveProductVersion(version)),
new VariableUpdateInfo("aspire-dashboard|fixed-tag", VersionHelper.ResolveProductVersion(version)),
new VariableUpdateInfo("aspire-dashboard|product-version", productVersion),
new VariableUpdateInfo("aspire-dashboard|fixed-tag", productVersion),
new VariableUpdateInfo("aspire-dashboard|minor-tag", majorMinorVersion.ToString(2)),
new VariableUpdateInfo("aspire-dashboard|major-tag", majorMinorVersion.Major.ToString()),
];
Expand Down