Skip to content

MTP V2, upgrade to net 8#1329

Merged
OsirisTerje merged 17 commits into
mainfrom
MTPv2
Oct 15, 2025
Merged

MTP V2, upgrade to net 8#1329
OsirisTerje merged 17 commits into
mainfrom
MTPv2

Conversation

@OsirisTerje

@OsirisTerje OsirisTerje commented Oct 15, 2025

Copy link
Copy Markdown
Member

Fixes #1328 Fixes #1335

This PR upgrades MTP to version 2, skips netcore3.1, adds .net 8, and update the NUnit.Engine to version 3.20.1

@OsirisTerje OsirisTerje requested a review from Copilot October 15, 2025 16:43

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 upgrades the NUnit Test Adapter to version 2 by transitioning from .NET Core 3.1 to .NET 8.0, updating the NUnit Engine to version 3.20.1, and upgrading the Microsoft Testing Platform dependencies to version 2.0.1.

  • Updated all target frameworks from netcoreapp3.1 to net8.0 across project files
  • Upgraded NUnit Engine from 3.18.1 to 3.20.1 and Microsoft Testing Platform packages from 1.9.0 to 2.0.1
  • Modernized code syntax and conditional compilation directives for the new framework version

Reviewed Changes

Copilot reviewed 29 out of 31 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/mock-assembly/mock-assembly.csproj Updated target framework and removed conditional NUnit package references
src/empty-assembly/empty-assembly.csproj Updated target framework and removed conditional NUnit package references
src/NUnitTestAdapterTests/TestDiscoveryTests.cs Added test ignore attribute and modernized syntax (collection expression, Assert scope)
src/NUnitTestAdapterTests/NUnit.TestAdapter.Tests.csproj Updated target framework and removed conditional package references and custom build target
src/NUnitTestAdapterTests/Filtering/VSTestFilterStringTestsLegacy.cs Refactored LINQ query into separate variable
src/NUnitTestAdapterTests/Filtering/FilteringTestUtils.cs Updated reflection type names to use new Microsoft Testing Platform internal types
src/NUnitTestAdapter/TestingPlatformAdapter/NUnitBridgedTestFramework.cs Converted constructor to primary constructor syntax
src/NUnitTestAdapter/TestFilterConverter/TestFilterParserException.cs Changed conditional compilation from !NETSTANDARD1_6 to NETFRAMEWORK
src/NUnitTestAdapter/NUnitEngine/NUnitTestEvent.cs Added conditional compilation for Serializable attribute and serialization constructor
src/NUnitTestAdapter/NUnitEngine/DiscoveryException.cs Added conditional compilation for Serializable attribute and serialization constructor
src/NUnitTestAdapter/NUnit3TestExecutor.cs Added pragma directives to suppress obsolete API warnings and added null-forgiving operator
src/NUnitTestAdapter/NUnit.TestAdapter.csproj Updated target framework, version numbers, and package references
src/NUnitTestAdapter/ExecutionProcesses/IdeExecution.cs Simplified conditional logic using combined OR expression
src/NUnit3AdapterExternalTests/NUnit3AdapterExternalTests.csproj Updated target framework and removed conditional package references
src/NUnit.TestAdapter.Tests.Acceptance/README.md Changed formatting of note from plain text to bold
src/NUnit.TestAdapter.Tests.Acceptance/PropertyTests.cs Updated framework constant from NetCoreApp31 to Net80
src/NUnit.TestAdapter.Tests.Acceptance/ParanthesisTests.cs Updated framework constant from NetCoreApp31 to Net80
src/NUnit.TestAdapter.Tests.Acceptance/FixtureTests.cs Updated framework constant from NetCoreApp31 to Net80
src/NUnit.TestAdapter.Tests.Acceptance/FilterTests.cs Updated framework constant from NetCoreApp31 to Net80
src/NUnit.TestAdapter.Tests.Acceptance/ExplicitModeNoneTests.cs Added documentation comment and NonParallelizable attribute, updated framework constant
src/NUnit.TestAdapter.Tests.Acceptance/ConsoleOutTests.cs Updated framework constant from NetCoreApp31 to Net80
src/NUnit.TestAdapter.Tests.Acceptance/AcceptanceTests.cs Removed legacy framework constants, updated test data sources, and changed Microsoft Test SDK version
nuget/NUnit3TestAdapter.nuspec Updated version numbers, descriptions, dependencies, and file paths from netcoreapp3.1 to net8.0
build.cake Updated version, renamed constants, and updated file paths from netcoreapp3.1 to net8.0
NUnit3TestAdapter.sln Updated solution folder name from netcoreapp3.1 to net8.0
LICENSE Updated copyright year to 2026
Directory.Packages.props Updated package versions for NUnit Engine and Microsoft Testing Platform packages
.github/workflows/NUnit3TestAdapter.Myget.Publish.yml Removed .NET 3.1 and 6.0 from setup, keeping only 8.0
.github/workflows/NUnit3TestAdapter.CI.yml Removed .NET 3.1, 5.0, 6.0, and 7.0 from setup, keeping only 8.0

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread src/NUnitTestAdapter/NUnit3TestExecutor.cs Outdated
Comment thread src/NUnit.TestAdapter.Tests.Acceptance/README.md Outdated
OsirisTerje and others added 2 commits October 15, 2025 18:57
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@OsirisTerje OsirisTerje merged commit 7f51f43 into main Oct 15, 2025
4 checks passed
@OsirisTerje OsirisTerje deleted the MTPv2 branch October 15, 2025 19:31
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.

Update to net 8, remove netcore 3.1 NUnit compatible version for MTP 2.0.0

3 participants