#7/automatic version management #68
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Implements automatic version management for TrafficLayer.exe using git tags as the single source of truth. Version header is now auto-generated during build from the latest git tag, eliminating manual version updates.
Related Issues / Tasks
Closes #7
Type of Change
Affected Modules / Components
CommonLib/RealSimVersion.h- Now auto-generated (removed from repo)CommonLib/RealSimVersion.h.in- New template file with placeholdersscripts/generate_version.ps1- PowerShell script that reads git tags and generates headerTrafficLayer/TrafficLayer/TrafficLayer.vcxproj- Added Pre-Build Event for all configurations.gitignore- Excludes auto-generated RealSimVersion.hImplementation Details
Workflow:
generate_version.ps1v0.7.0)RealSimVersion.hfrom templateVersion Strategy:
vX.Y.Z)Current Version:
v0.7.0(156 commits sincev0.6.0)Test Cases
generate_version.ps1- successfully generated version header fromv0.7.0tagEnvironment
Checklist
Additional Notes
For developers:
RealSimVersion.hgit tag vX.Y.Z -m "message"then push tagFuture enhancements (not in this PR):