Add -f/--framework support to TUnit template with .NET Framework handling#6262
Draft
Copilot wants to merge 3 commits into
Draft
Add -f/--framework support to TUnit template with .NET Framework handling#6262Copilot wants to merge 3 commits into
Copilot wants to merge 3 commits into
Conversation
Not up to standards ⛔🔴 Issues
|
| Category | Results |
|---|---|
| BestPractice | 1 medium |
🟢 Metrics 21 complexity
Metric Results Complexity 21
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
Copilot
AI
changed the title
[WIP] Add support for -f / --framework with template handling
Add -f/--framework support to TUnit template with .NET Framework handling
Jun 16, 2026
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.
The TUnit template lacked
-f/--frameworksupport, making it impossible to scaffold projects targeting specific frameworks — particularly .NET Framework, which requires additional project configuration (polyfills, warning suppression, lang version).Changes
template.json— Addedframeworkchoice parameter (net8.0–net10.0, net462–net481) with computedIsNetFrameworksymbol and conditional source exclusion for thePolyfills/directoryTestProject.csproj— Conditional .NET Framework block:LangVersion=preview,EnableTUnitPolyfills=false,NoWarnfor CS0592/CS0436, andPolyfillpackage referencePolyfills/ExcludeFromCodeCoverageAttribute.cs— Compatibility shim only included for .NET Framework targetsInstantiationTestWithNetFrameworkandOptionsWithFramework()helper; accepted snapshotUsage