[FEATURE] Support Single Version.txt File for Entire Solution
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- powershell
- Lĩnh vực
- build-system
Hướng nghiên cứu
Bắt đầu bằng việc xác định MSBuild target và cách tra cứu version.txt hiện tại ở cấp dự án. Thêm tra cứu ở cấp solution với fallback về cấp dự án, sau đó viết test cho cả hai cấu hình và cập nhật tài liệu của dự án.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- PowerShell
- Star
- 5
- Fork
- 1
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của guibranco/MSBuild.Version.Target
-
♻️ code quality CI enhancement gitauto github_actions good first issue help wanted
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
guibranco/MSBuild.Version.Target#10 · 1 bình luận · 1 reaction ·
Tất cả issue của guibranco/MSBuild.Version.Target
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
Feyisara2108/stellargive#1374 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
-
bug good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
sno-ai/sno-station#228 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
tauri-apps/tauri#16563 ·
Maintainer thường phản hồi trong vòng 1 ngày