Skip to content

Bump MSTest, NUnit, and xUnit packages to latest in dotnet new test templates - #54635

Merged
Evangelink merged 1 commit into
dotnet:mainfrom
Evangelink:dev/amauryleve/bump-test-template-versions
Jun 8, 2026
Merged

Evangelink merged 1 commit into
dotnet:mainfrom
Evangelink:dev/amauryleve/bump-test-template-versions

Conversation

@Evangelink

Copy link
Copy Markdown
Member

Bumps the test framework packages used by the dotnet new test project templates to their latest stable versions.

Package Old New
MSTest.Sdk 4.0.2 4.2.3
MSTest 4.0.2 4.2.3
NUnit 4.3.2 4.6.1
NUnit.Analyzers 4.7.0 4.14.0
NUnit3TestAdapter 5.0.0 6.2.0
xunit.runner.visualstudio 3.1.4 3.1.5

xunit is already at the latest stable 2.x version (2.9.3); no change.

Templates affected (all under template_feed/Microsoft.DotNet.Common.ProjectTemplates.11.0/content/):

  • MSTest-CSharp, MSTest-FSharp, MSTest-VisualBasic, Playwright-MSTest-CSharp
  • NUnit-CSharp, NUnit-FSharp, NUnit-VisualBasic, Playwright-NUnit-CSharp
  • XUnit-CSharp, XUnit-FSharp, XUnit-VisualBasic

Out of scope (left untouched on purpose):

  • Microsoft.NET.Test.Sdk (currently a mix of 17.14.0 / 17.14.1 — would be a major-version jump to 18.x)
  • coverlet.collector (6.0.4)
  • Microsoft.Playwright.MSTest.v4 / Microsoft.Playwright.NUnit

- MSTest.Sdk: 4.0.2 -> 4.2.3
- MSTest: 4.0.2 -> 4.2.3
- NUnit: 4.3.2 -> 4.6.1
- NUnit.Analyzers: 4.7.0 -> 4.14.0
- NUnit3TestAdapter: 5.0.0 -> 6.2.0
- xunit.runner.visualstudio: 3.1.4 -> 3.1.5

xunit (2.9.3) is already at the latest stable 2.x version.

Co-authored-by: Copilot <[email protected]>
Copilot AI review requested due to automatic review settings June 8, 2026 12:05
@Evangelink
Evangelink requested a review from a team as a code owner June 8, 2026 12:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the dotnet new test project templates in Microsoft.DotNet.Common.ProjectTemplates.11.0 to use the latest stable package versions for MSTest, NUnit (including analyzers and adapter), and the xUnit VS runner.

Changes:

  • Bump MSTest.Sdk and MSTest from 4.0.2 to 4.2.3 in MSTest-based templates (including Playwright MSTest).
  • Bump NUnit / NUnit.Analyzers / NUnit3TestAdapter to 4.6.1 / 4.14.0 / 6.2.0 in NUnit-based templates (including Playwright NUnit).
  • Bump xunit.runner.visualstudio from 3.1.4 to 3.1.5 in xUnit templates.
Show a summary per file
File Description
template_feed/Microsoft.DotNet.Common.ProjectTemplates.11.0/content/XUnit-VisualBasic/Company.TestProject1.vbproj Updates xUnit VS runner package version used by the VB xUnit template.
template_feed/Microsoft.DotNet.Common.ProjectTemplates.11.0/content/XUnit-FSharp/Company.TestProject1.fsproj Updates xUnit VS runner package version used by the F# xUnit template.
template_feed/Microsoft.DotNet.Common.ProjectTemplates.11.0/content/XUnit-CSharp/Company.TestProject1.csproj Updates xUnit VS runner package version used by the C# xUnit template.
template_feed/Microsoft.DotNet.Common.ProjectTemplates.11.0/content/Playwright-NUnit-CSharp/Company.TestProject1.csproj Updates NUnit framework/analyzers/adapter package versions for the Playwright NUnit template.
template_feed/Microsoft.DotNet.Common.ProjectTemplates.11.0/content/Playwright-MSTest-CSharp/Company.TestProject1.csproj Updates MSTest.Sdk and MSTest package versions for the Playwright MSTest template.
template_feed/Microsoft.DotNet.Common.ProjectTemplates.11.0/content/NUnit-VisualBasic/Company.TestProject1.vbproj Updates NUnit framework/analyzers/adapter package versions for the VB NUnit template.
template_feed/Microsoft.DotNet.Common.ProjectTemplates.11.0/content/NUnit-FSharp/Company.TestProject1.fsproj Updates NUnit framework/analyzers/adapter package versions for the F# NUnit template.
template_feed/Microsoft.DotNet.Common.ProjectTemplates.11.0/content/NUnit-CSharp/Company.TestProject1.csproj Updates NUnit framework/analyzers/adapter package versions for the C# NUnit template.
template_feed/Microsoft.DotNet.Common.ProjectTemplates.11.0/content/MSTest-VisualBasic/Company.TestProject1.vbproj Updates MSTest.Sdk and MSTest package versions for the VB MSTest template.
template_feed/Microsoft.DotNet.Common.ProjectTemplates.11.0/content/MSTest-FSharp/Company.TestProject1.fsproj Updates MSTest.Sdk and MSTest package versions for the F# MSTest template.
template_feed/Microsoft.DotNet.Common.ProjectTemplates.11.0/content/MSTest-CSharp/Company.TestProject1.csproj Updates MSTest.Sdk and MSTest package versions for the C# MSTest template.

Copilot's findings

  • Files reviewed: 11/11 changed files
  • Comments generated: 0

@Evangelink
Evangelink enabled auto-merge June 8, 2026 12:13
@Evangelink
Evangelink merged commit bf5cc92 into dotnet:main Jun 8, 2026
25 checks passed
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-preview6 milestone Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants