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 all sample projects to .NET 10 and modernizes the configuration samples by renaming, reorganizing, and improving documentation. The changes ensure consistency, upgrade all dependencies, and clarify usage for each configuration provider. Below are the most important changes grouped by theme.
Project and Dependency Upgrades:
.csprojfiles updated to targetnet10.0and use version10.0.0of Microsoft.Extensions.* packages for configuration, hosting, and related libraries. [1] [2] [3] [4] [5] [6]Sample Renaming and Organization:
02-basic-console→01-basic-console,01-generic-host→02-generic-host). Associated project/JSON files moved accordingly. [1] [2] [3]Configuration Demonstrations:
appsettings.jsonand improved sample code to demonstrate configuration precedence and overrides. [1] [2]Documentation Improvements:
README.mdfiles with clear "Overview," "Run," and "Notes" sections. Simplified instructions, clarified provider precedence, and included cross-platform usage examples. [1] [2] [3] [4] [5] [6] [7] [8]Cleanup and Removal of Redundant Files:
These changes modernize the sample repository, making it easier to follow and demonstrating best practices for .NET 10 configuration.