Repository navigation
V0.3.0/dotnet legacy framework - #8
Merged
Merged
Conversation
Support legacy .NET Framework TFMs (net471, net472, net48, net481) natively on Windows by bypassing the .NET Core release index and runtime list, falling back to an isolated temporary SDK-style project for console mode, and configuring LangVersion=latest and Microsoft.NETFramework.ReferenceAssemblies.
Add unit, integration, and container tests covering .NET Framework TFM validation, non-Windows rejection, net48 console and xUnit v3 execution, and preamble directive handling.
Document Windows-only .NET Framework (net471-net481) support, release-index bypass, and temporary SDK-style project fallback behavior in README.
[Medium impact] The PR appears safe to merge; both previous findings are fixed and no new actionable issues were found. SummaryAdds Windows-only .NET Framework support for
Reviews (2) · Last reviewed commit: "✅ add directive stripping regression tes..." · Reviewed by Greptile |
Use character-span removals in Get-ConsoleSource instead of splitting and rejoining lines so closing block-comment delimiters on directive lines and original CRLF line endings are preserved.
Add net48 console tests verifying that closing block comments on directive lines and CRLF line endings are preserved when directives are stripped.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 introduces Windows-only support for legacy .NET Framework target frameworks (
net471,net472,net48, andnet481) across both console and test execution modes while preserving manifestschemaVersion1 and existing modern .NET behavior. It adds an isolated temporary SDK-style project fallback for console mode, expands unit, integration, and container test coverage, and updates the documentation and changelog.Legacy .NET Framework execution:
net471,net472,net48, andnet481natively on Windows while failing fast on non-Windows platforms and inside Linux containers, and bypasses the .NET Core release index, SDK channel check, and runtime list while still building with a selected .NET 10+ SDKdotnet run --filedoes not support.NET FrameworkTFMs directly, stripping validated matching preamble directives and cleaning up the temporary directory infinallyLangVersion=latest,WarningsAsErrors=NU1603;NU1605, andMicrosoft.NETFramework.ReferenceAssemblies(unless already pinned independsOn) for.NET Frameworktargets, while passing--frameworktodotnet run --projectTest coverage:
net471–net481validation, rejection of unsupported TFMs such asnetstandard2.0and older or unrequested.NET Frameworkversions, and fail-fast non-Windows and Linux-container rejectionnet48againstlib/netstandard2.0package assets, verifying exit-status and stderr preservation, preamble directive matching and conflict handling, and temporary artifact cleanupDocumentation and changelog:
.NET Framework(net471–net481) support, release-index and runtime-list bypass, non-executable TFM rejection, temporary.csprojfallback, and test-mode project configuration0.3.0release entry and compare link to the changelog