Skip to content

Commit d2d45fc

Browse files
sameerk27claude
andcommitted
release: bump installer exe version to 1.1.0; set-version now updates it too
The GuiInstaller csproj carries its own <Version> (shown in the exe's file properties) but set-version.ps1 never touched it, so the shipped installer reported a stale version. Bumped it to 1.1.0 and taught set-version.ps1 to keep all three projects (API, installer, client) in step. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent ecdc3a2 commit d2d45fc

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

‎scripts/set-version.ps1‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ $ErrorActionPreference = "Stop"
2020
$repo = Split-Path -Parent $PSScriptRoot
2121

2222
$csprojPath = Join-Path $repo "src/M365SecurityDashboard.Api/M365SecurityDashboard.Api.csproj"
23+
$installerCsprojPath = Join-Path $repo "src/M365SecurityDashboard.GuiInstaller/M365SecurityDashboard.GuiInstaller.csproj"
2324
$packagePath = Join-Path $repo "src/m365-security-dashboard-client/package.json"
2425

2526
# Targeted replacements - a full XML/JSON round-trip would reformat the files.
@@ -28,12 +29,19 @@ $updated = [regex]::Replace($csproj, '<Version>[^<]*</Version>', "<Version>$Vers
2829
if ($updated -eq $csproj) { throw "No <Version> element found in $csprojPath" }
2930
Set-Content $csprojPath $updated -NoNewline
3031

32+
# The installer exe carries its own <Version> (shown in the file's Properties);
33+
# keep it in step so the shipped Vigil365-Setup.exe reports the release version.
34+
$installer = Get-Content $installerCsprojPath -Raw
35+
$updatedInstaller = [regex]::Replace($installer, '<Version>[^<]*</Version>', "<Version>$Version</Version>", 1)
36+
if ($updatedInstaller -eq $installer) { throw "No <Version> element found in $installerCsprojPath" }
37+
Set-Content $installerCsprojPath $updatedInstaller -NoNewline
38+
3139
$package = Get-Content $packagePath -Raw
3240
$updatedPkg = [regex]::Replace($package, '"version":\s*"[^"]*"', """version"": ""$Version""", 1)
3341
if ($updatedPkg -eq $package) { throw "No version field found in $packagePath" }
3442
Set-Content $packagePath $updatedPkg -NoNewline
3543

36-
Write-Host "Set version to $Version in both projects.`n" -ForegroundColor Green
44+
Write-Host "Set version to $Version in the API, installer and client.`n" -ForegroundColor Green
3745
& (Join-Path $PSScriptRoot "check-version.ps1")
3846

3947
Write-Host "`nNext: update CHANGELOG.md, commit, then tag:" -ForegroundColor Cyan

‎src/M365SecurityDashboard.GuiInstaller/M365SecurityDashboard.GuiInstaller.csproj‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<!-- Version and identity metadata — surfaced in the exe's Properties >
2121
Details tab. Version tracks the release; keep in step with the API and
2222
client via scripts/set-version.ps1. -->
23-
<Version>1.0.0</Version>
23+
<Version>1.1.0</Version>
2424
<AssemblyTitle>Vigil365 Setup</AssemblyTitle>
2525
<Product>Vigil365</Product>
2626
<Company>Vigil365</Company>

0 commit comments

Comments
 (0)