Repository navigation
Add .NET 12 support to all test project templates - #56833
Merged
Evangelink merged 1 commit intoOct 29, 2026
Merged
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
Azure Pipelines: Successfully started running 1 pipeline(s). 2 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Evangelink
enabled auto-merge (squash)
October 29, 2026 12:40
drognanar
approved these changes
Oct 29, 2026
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The review reports no active issues with the .NET 12 test-template framework selection changes.
No open issues 🎉
What changed in this PR
This PR completes .NET 12 framework selection across the SDK’s 11 test project template variants, bringing NUnit, xUnit, and Playwright-NUnit into line with MSTest while preserving existing choices and net11.0 defaults.
Changes:
- Adds
net12.0to seven template framework-choice lists. - Regenerates framework-description entries across 14 locale files per updated template.
- Adds 11 data-driven integration cases that check generated
TargetFrameworkvalues without restoring packages.
Template paths below are relative to template_feed/Microsoft.DotNet.Common.ProjectTemplates.11.0/content/.
| File | Description |
|---|---|
test/dotnet-new.IntegrationTests/DotnetNewTestTemplatesTests.cs |
Checks framework generation across all 11 variants without restore. |
XUnit-VisualBasic/.template.config/template.json |
Adds the net12.0 framework choice. |
XUnit-VisualBasic/.template.config/localize/templatestrings.zh-Hant.json |
Adds the .NET 12 description entry. |
XUnit-VisualBasic/.template.config/localize/templatestrings.zh-Hans.json |
Adds the .NET 12 description entry. |
XUnit-VisualBasic/.template.config/localize/templatestrings.tr.json |
Adds the .NET 12 description entry. |
XUnit-VisualBasic/.template.config/localize/templatestrings.ru.json |
Adds the .NET 12 description entry. |
XUnit-VisualBasic/.template.config/localize/templatestrings.pt-BR.json |
Adds the .NET 12 description entry. |
XUnit-VisualBasic/.template.config/localize/templatestrings.pl.json |
Adds the .NET 12 description entry. |
XUnit-VisualBasic/.template.config/localize/templatestrings.ko.json |
Adds the .NET 12 description entry. |
XUnit-VisualBasic/.template.config/localize/templatestrings.ja.json |
Adds the .NET 12 description entry. |
XUnit-VisualBasic/.template.config/localize/templatestrings.it.json |
Adds the .NET 12 description entry. |
XUnit-VisualBasic/.template.config/localize/templatestrings.fr.json |
Adds the .NET 12 description entry. |
XUnit-VisualBasic/.template.config/localize/templatestrings.es.json |
Adds the .NET 12 description entry. |
XUnit-VisualBasic/.template.config/localize/templatestrings.en.json |
Adds the .NET 12 description entry. |
XUnit-VisualBasic/.template.config/localize/templatestrings.de.json |
Adds the .NET 12 description entry. |
XUnit-VisualBasic/.template.config/localize/templatestrings.cs.json |
Adds the .NET 12 description entry. |
XUnit-FSharp/.template.config/template.json |
Adds the net12.0 framework choice. |
XUnit-FSharp/.template.config/localize/templatestrings.zh-Hant.json |
Adds the .NET 12 description entry. |
XUnit-FSharp/.template.config/localize/templatestrings.zh-Hans.json |
Adds the .NET 12 description entry. |
XUnit-FSharp/.template.config/localize/templatestrings.tr.json |
Adds the .NET 12 description entry. |
XUnit-FSharp/.template.config/localize/templatestrings.ru.json |
Adds the .NET 12 description entry. |
XUnit-FSharp/.template.config/localize/templatestrings.pt-BR.json |
Adds the .NET 12 description entry. |
XUnit-FSharp/.template.config/localize/templatestrings.pl.json |
Adds the .NET 12 description entry. |
XUnit-FSharp/.template.config/localize/templatestrings.ko.json |
Adds the .NET 12 description entry. |
XUnit-FSharp/.template.config/localize/templatestrings.ja.json |
Adds the .NET 12 description entry. |
XUnit-FSharp/.template.config/localize/templatestrings.it.json |
Adds the .NET 12 description entry. |
XUnit-FSharp/.template.config/localize/templatestrings.fr.json |
Adds the .NET 12 description entry. |
XUnit-FSharp/.template.config/localize/templatestrings.es.json |
Adds the .NET 12 description entry. |
XUnit-FSharp/.template.config/localize/templatestrings.en.json |
Adds the .NET 12 description entry. |
XUnit-FSharp/.template.config/localize/templatestrings.de.json |
Adds the .NET 12 description entry. |
XUnit-FSharp/.template.config/localize/templatestrings.cs.json |
Adds the .NET 12 description entry. |
XUnit-CSharp/.template.config/template.json |
Adds the net12.0 framework choice. |
XUnit-CSharp/.template.config/localize/templatestrings.zh-Hant.json |
Adds the .NET 12 description entry. |
XUnit-CSharp/.template.config/localize/templatestrings.zh-Hans.json |
Adds the .NET 12 description entry. |
XUnit-CSharp/.template.config/localize/templatestrings.tr.json |
Adds the .NET 12 description entry. |
XUnit-CSharp/.template.config/localize/templatestrings.ru.json |
Adds the .NET 12 description entry. |
XUnit-CSharp/.template.config/localize/templatestrings.pt-BR.json |
Adds the .NET 12 description entry. |
XUnit-CSharp/.template.config/localize/templatestrings.pl.json |
Adds the .NET 12 description entry. |
XUnit-CSharp/.template.config/localize/templatestrings.ko.json |
Adds the .NET 12 description entry. |
XUnit-CSharp/.template.config/localize/templatestrings.ja.json |
Adds the .NET 12 description entry. |
XUnit-CSharp/.template.config/localize/templatestrings.it.json |
Adds the .NET 12 description entry. |
XUnit-CSharp/.template.config/localize/templatestrings.fr.json |
Adds the .NET 12 description entry. |
XUnit-CSharp/.template.config/localize/templatestrings.es.json |
Adds the .NET 12 description entry. |
XUnit-CSharp/.template.config/localize/templatestrings.en.json |
Adds the .NET 12 description entry. |
XUnit-CSharp/.template.config/localize/templatestrings.de.json |
Adds the .NET 12 description entry. |
XUnit-CSharp/.template.config/localize/templatestrings.cs.json |
Adds the .NET 12 description entry. |
Playwright-NUnit-CSharp/.template.config/template.json |
Adds the net12.0 framework choice. |
Playwright-NUnit-CSharp/.template.config/localize/templatestrings.zh-Hant.json |
Adds the .NET 12 description entry. |
Playwright-NUnit-CSharp/.template.config/localize/templatestrings.zh-Hans.json |
Adds the .NET 12 description entry. |
Playwright-NUnit-CSharp/.template.config/localize/templatestrings.tr.json |
Adds the .NET 12 description entry. |
Playwright-NUnit-CSharp/.template.config/localize/templatestrings.ru.json |
Adds the .NET 12 description entry. |
Playwright-NUnit-CSharp/.template.config/localize/templatestrings.pt-BR.json |
Adds the .NET 12 description entry. |
Playwright-NUnit-CSharp/.template.config/localize/templatestrings.pl.json |
Adds the .NET 12 description entry. |
Playwright-NUnit-CSharp/.template.config/localize/templatestrings.ko.json |
Adds the .NET 12 description entry. |
Playwright-NUnit-CSharp/.template.config/localize/templatestrings.ja.json |
Adds the .NET 12 description entry. |
Playwright-NUnit-CSharp/.template.config/localize/templatestrings.it.json |
Adds the .NET 12 description entry. |
Playwright-NUnit-CSharp/.template.config/localize/templatestrings.fr.json |
Adds the .NET 12 description entry. |
Playwright-NUnit-CSharp/.template.config/localize/templatestrings.es.json |
Adds the .NET 12 description entry. |
Playwright-NUnit-CSharp/.template.config/localize/templatestrings.en.json |
Adds the .NET 12 description entry. |
Playwright-NUnit-CSharp/.template.config/localize/templatestrings.de.json |
Adds the .NET 12 description entry. |
Playwright-NUnit-CSharp/.template.config/localize/templatestrings.cs.json |
Adds the .NET 12 description entry. |
NUnit-VisualBasic/.template.config/template.json |
Adds the net12.0 framework choice. |
NUnit-VisualBasic/.template.config/localize/templatestrings.zh-Hant.json |
Adds the .NET 12 description entry. |
NUnit-VisualBasic/.template.config/localize/templatestrings.zh-Hans.json |
Adds the .NET 12 description entry. |
NUnit-VisualBasic/.template.config/localize/templatestrings.tr.json |
Adds the .NET 12 description entry. |
NUnit-VisualBasic/.template.config/localize/templatestrings.ru.json |
Adds the .NET 12 description entry. |
NUnit-VisualBasic/.template.config/localize/templatestrings.pt-BR.json |
Adds the .NET 12 description entry. |
NUnit-VisualBasic/.template.config/localize/templatestrings.pl.json |
Adds the .NET 12 description entry. |
NUnit-VisualBasic/.template.config/localize/templatestrings.ko.json |
Adds the .NET 12 description entry. |
NUnit-VisualBasic/.template.config/localize/templatestrings.ja.json |
Adds the .NET 12 description entry. |
NUnit-VisualBasic/.template.config/localize/templatestrings.it.json |
Adds the .NET 12 description entry. |
NUnit-VisualBasic/.template.config/localize/templatestrings.fr.json |
Adds the .NET 12 description entry. |
NUnit-VisualBasic/.template.config/localize/templatestrings.es.json |
Adds the .NET 12 description entry. |
NUnit-VisualBasic/.template.config/localize/templatestrings.en.json |
Adds the .NET 12 description entry. |
NUnit-VisualBasic/.template.config/localize/templatestrings.de.json |
Adds the .NET 12 description entry. |
NUnit-VisualBasic/.template.config/localize/templatestrings.cs.json |
Adds the .NET 12 description entry. |
NUnit-FSharp/.template.config/template.json |
Adds the net12.0 framework choice. |
NUnit-FSharp/.template.config/localize/templatestrings.zh-Hant.json |
Adds the .NET 12 description entry. |
NUnit-FSharp/.template.config/localize/templatestrings.zh-Hans.json |
Adds the .NET 12 description entry. |
NUnit-FSharp/.template.config/localize/templatestrings.tr.json |
Adds the .NET 12 description entry. |
NUnit-FSharp/.template.config/localize/templatestrings.ru.json |
Adds the .NET 12 description entry. |
NUnit-FSharp/.template.config/localize/templatestrings.pt-BR.json |
Adds the .NET 12 description entry. |
NUnit-FSharp/.template.config/localize/templatestrings.pl.json |
Adds the .NET 12 description entry. |
NUnit-FSharp/.template.config/localize/templatestrings.ko.json |
Adds the .NET 12 description entry. |
NUnit-FSharp/.template.config/localize/templatestrings.ja.json |
Adds the .NET 12 description entry. |
NUnit-FSharp/.template.config/localize/templatestrings.it.json |
Adds the .NET 12 description entry. |
NUnit-FSharp/.template.config/localize/templatestrings.fr.json |
Adds the .NET 12 description entry. |
NUnit-FSharp/.template.config/localize/templatestrings.es.json |
Adds the .NET 12 description entry. |
NUnit-FSharp/.template.config/localize/templatestrings.en.json |
Adds the .NET 12 description entry. |
NUnit-FSharp/.template.config/localize/templatestrings.de.json |
Adds the .NET 12 description entry. |
NUnit-FSharp/.template.config/localize/templatestrings.cs.json |
Adds the .NET 12 description entry. |
NUnit-CSharp/.template.config/template.json |
Adds the net12.0 framework choice. |
NUnit-CSharp/.template.config/localize/templatestrings.zh-Hant.json |
Adds the .NET 12 description entry. |
NUnit-CSharp/.template.config/localize/templatestrings.zh-Hans.json |
Adds the .NET 12 description entry. |
NUnit-CSharp/.template.config/localize/templatestrings.tr.json |
Adds the .NET 12 description entry. |
NUnit-CSharp/.template.config/localize/templatestrings.ru.json |
Adds the .NET 12 description entry. |
NUnit-CSharp/.template.config/localize/templatestrings.pt-BR.json |
Adds the .NET 12 description entry. |
NUnit-CSharp/.template.config/localize/templatestrings.pl.json |
Adds the .NET 12 description entry. |
NUnit-CSharp/.template.config/localize/templatestrings.ko.json |
Adds the .NET 12 description entry. |
NUnit-CSharp/.template.config/localize/templatestrings.ja.json |
Adds the .NET 12 description entry. |
NUnit-CSharp/.template.config/localize/templatestrings.it.json |
Adds the .NET 12 description entry. |
NUnit-CSharp/.template.config/localize/templatestrings.fr.json |
Adds the .NET 12 description entry. |
NUnit-CSharp/.template.config/localize/templatestrings.es.json |
Adds the .NET 12 description entry. |
NUnit-CSharp/.template.config/localize/templatestrings.en.json |
Adds the .NET 12 description entry. |
NUnit-CSharp/.template.config/localize/templatestrings.de.json |
Adds the .NET 12 description entry. |
NUnit-CSharp/.template.config/localize/templatestrings.cs.json |
Adds the .NET 12 description entry. |
Review effort: Balanced
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.
NUnit, xUnit, and Playwright-NUnit templates reject
--framework net12.0, although the MSTest variants already support it. Add the missing framework choices so all 11 test project variants support .NET 12 without changing existing choices ornet11.0defaults.Regenerate localized framework descriptions through the existing template build and add data-driven coverage that checks each generated
TargetFrameworkwithout restoring packages.Validation
net12.0, explicitnet11.0, and default selection.12.0.100-alpha.1.26480.102. Source-template compatibility checks used11.0.100-rc.3.26522.148.Native AOT was disabled only for local validation because the C++ linker is unavailable. No build configuration files were changed.