Skip to content

Conversation

@ajlennon
Copy link
Member

Summary

This PR adds comprehensive versioning support to the CGA Coordinate Mapping application.

Changes

  • Added version properties to InstDotNet.csproj (Version, AssemblyVersion, FileVersion)
  • Created VersionInfo.cs class to expose version information at runtime
  • Added MSBuild target to automatically capture:
    • Build date/time in UTC format
    • Git commit hash (short format)
  • Embedded build metadata as assembly metadata attributes
  • Updated Program.cs to display version information on application startup

Version Format

The application now displays version information in the following format:

CGA Coordinate Mapping - Version X.Y.Z (Build: YYYY-MM-DD HH:mm:ss UTC, Commit: <hash>)

Example Output

CGA Coordinate Mapping - Version 1.0.0 (Build: 2025-11-20 16:01:06 UTC, Commit: 8b75ff0)

Benefits

  • Easy identification of deployed versions
  • Traceability to specific git commits
  • Build timestamp for debugging and support
  • Automatic capture during build process (no manual updates required)

Testing

  • ✅ Build succeeds with version metadata
  • ✅ Version information displays correctly on startup
  • ✅ Build date and git commit hash are captured automatically
  • ✅ Works in both local builds and CI environments

Reviewer

@Jen42 - Please review this PR when you have a chance.

- Add version properties to InstDotNet.csproj (Version, AssemblyVersion, FileVersion)
- Create VersionInfo.cs class to expose version information at runtime
- Add MSBuild target to capture build date/time (UTC) and git commit hash
- Embed build metadata as assembly metadata attributes
- Display version information on application startup
- Version format: 'Version X.Y.Z (Build: YYYY-MM-DD HH:mm:ss UTC, Commit: <hash>)'
@ajlennon ajlennon requested a review from Jen42 November 24, 2025 17:36
@Jen42 Jen42 merged commit 29f1a4a into main Nov 24, 2025
1 check passed
@Jen42 Jen42 deleted the feature/add-versioning-support branch November 24, 2025 17:40
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.

3 participants