-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
enhancementNew feature or requestNew feature or requestgitautoGitAuto label to trigger the app in a issue.GitAuto label to trigger the app in a issue.good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Description
Description
Currently, our MSBuild target generates a Semantic Version (SemVer) for each project in the solution based on individual version.txt files. This approach can lead to redundancy and inconsistencies when managing versioning across multiple projects.
To simplify version management, we propose allowing a single version.txt file to be used for the entire solution instead of requiring separate files for each project.
Proposed Changes
-
Single Version File:
- Introduce support for a centralized
version.txtfile located at the solution level, which all projects can reference for versioning. - Ensure that the MSBuild target reads from this single file and generates the same SemVer for all projects in the solution.
- Introduce support for a centralized
-
Backwards Compatibility:
- Maintain support for existing projects that still use individual
version.txtfiles. - Implement logic to check for the presence of a solution-level
version.txtand prioritize it over project-level files if both exist.
- Maintain support for existing projects that still use individual
-
Documentation Update:
- Update the project documentation to reflect this new feature, including setup instructions for using the centralized versioning approach.
-
Testing:
- Create test cases to ensure that the versioning behaves as expected when using both the centralized and individual
version.txtsetups.
- Create test cases to ensure that the versioning behaves as expected when using both the centralized and individual
Benefits
- Simplified Version Management: Having a single version file reduces redundancy and makes it easier to manage versioning across multiple projects.
- Consistency: Ensures that all projects in the solution are using the same version number, preventing discrepancies and confusion.
- Ease of Use: Simplifies the process for developers, who will no longer need to update multiple version files for each release.
gitauto-ai
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgitautoGitAuto label to trigger the app in a issue.GitAuto label to trigger the app in a issue.good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed