Skip to content

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

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

michaldengusiak merged 4 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).
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

- 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.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@michaldengusiak
michaldengusiak merged commit e959907 into sow/2026-Q2 May 20, 2026
2 checks passed
@michaldengusiak
michaldengusiak deleted the fix/directory-build-props branch May 20, 2026 19:12
Sign up for free to 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