updates to use lts-latest for .NET version and distro-latest for docker distributions
#4716
+106
−105
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.

This pull request updates the build and test scripts to consistently use the latest supported .NET LTS version and the latest supported Docker distribution when specified. It introduces new constants for these "latest" values and updates logic and run configurations to recognize and substitute the new keywords (
lts-latestanddistro-latest) for the correct version identifiers. This ensures that builds and tests will always use the most recent LTS .NET and Docker images when requested, improving maintainability and future-proofing the build system.Build and Docker configuration improvements:
build/.run/to accept--dotnet_version=lts-latestand--docker_distro=distro-latestparameters, replacing hardcoded version and distro values. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11]Constants and version handling:
DotnetLtsLatestinConstants.csand replaced usages ofVersionLatestwith this new constant throughout the codebase. Also updated arrays and logic to use the new constant for LTS version handling.BuildLifetime.cs,BuildLifetimeBase.cs,BuildPrepare.cs,PackagePrepare.cs,UnitTest.cs,DockerContextExtensions.cs,Docker/BuildLifetime.cs,ContextExtensions.cs) to recognizelts-latestanddistro-latestas special keywords and substitute them with the correct version/distro values. [1] [2] [3] [4] [5] [6] [7] [8] [9]Codebase consistency and maintainability:
These changes make it easier to keep the build infrastructure up to date with the latest supported platforms and simplify the process for developers to use the newest LTS versions.