Target pwsh LTS .NET Framework #1
Draft
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.
PR Summary
This pull request updates the build system and project configuration for
PSReadLineto target .NET 8.0, simplifies the build process by removing polyfill support, and updates dependencies accordingly. The changes ensure the build dynamically determines the target framework, and streamline the layout and test tasks to match the new structure.Build and Target Framework Modernization:
PSReadLineproject now targets.NET 8.0instead of.NET Standard 2.0, as specified inPSReadLine.csproj. The build script (PSReadLine.build.ps1) dynamically reads the target framework from the project file, removing the need for manual selection or validation of frameworks. [1] [2]global.jsonfile pins the .NET SDK version to8.0.416to ensure consistent builds across environments.Simplification and Cleanup:
Polyfillproject and related build steps have been removed from the build script and project file, streamlining the build and layout process. [1] [2] [3] [4]PowerShellStandard.Libraryand thePolyfillproject reference were removed, andMicrosoft.PowerShell.SDKwas added as a new package dependency.Build Script Adjustments:
PSReadLine.build.ps1now use the dynamically determined target framework, improving maintainability and reducing manual errors. [1] [2] [3] [4]PR Checklist