Skip to content

build: Directory.Build.props for centralised SAMVersion stamping - #2

Merged
michaldengusiak merged 5 commits into
sow/2026-Q2from
fix/directory-build-props
May 20, 2026
Merged

build: Directory.Build.props for centralised SAMVersion stamping#2
michaldengusiak merged 5 commits into
sow/2026-Q2from
fix/directory-build-props

Conversation

@michaldengusiak

Copy link
Copy Markdown

Mirrors SAM-BIM/SAM#7. Stage 2.

  • Directory.Build.props at repo root.
  • csproj/AssemblyInfo: strip duplicated AssemblyVersion/FileVersion/Deterministic; add SPDX where missing.
  • build.yml: sow/** triggers, hybrid branch/date Compute SAMVersion (UInt16-safe), /p:SAMVersion injected, dep-clone candidate derives current sow branch (Codex P1 fix from SAM_SolarCalculator#5).

Mirrors SAM-BIM/SAM#7. Stage 2 of the AssemblyVersion versioning migration.
PowerShell 5.1 doesn't support backtick-u escape sequences; the
apply-stage2.ps1 script leaked them as literal text in 'Copyright (c) 2020u{2013}2026'.
Codex P1 on SAM_LadybugTools#4: classic (non-SDK) csprojs don't set
GenerateAssemblyInfo at all, so the previous '== false' condition skipped
them. Switching to '!= true' catches both GenerateAssemblyInfo=false
(SDK projects with legacy AssemblyInfo.cs) AND empty (classic projects).
- Append .0 so SAMVersion is 4-part (AssemblyFileVersion expects 4 parts).
- Prefer github.head_ref when it matches sow/yyyy-Qx (release-promotion PRs).
- Mirrors SAM sow/2026-Q2 6d87d98e.
Codex P1 from SAM_Excel#3: simple clone defaults to remote HEAD,
mismatches sow branches. Mirrors fix in SAM_Excel.
@michaldengusiak
michaldengusiak merged commit e4dc56e into sow/2026-Q2May 20, 2026
2 checks passed
@michaldengusiak
michaldengusiak deleted the fix/directory-build-props branch May 20, 2026 19:11
michaldengusiak added a commit that referenced this pull request Jul 20, 2026
Q2 2026 — System.Text.Json migration + quarterly work
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@michaldengusiak