Skip to content

#2341 UnitTests project xUnit v3 migration (Ignore)#2355

Closed
methran1304 wants to merge 1 commit intoThreeMammals:developfrom
methran1304:mgs25/xunitv3-migration
Closed

#2341 UnitTests project xUnit v3 migration (Ignore)#2355
methran1304 wants to merge 1 commit intoThreeMammals:developfrom
methran1304:mgs25/xunitv3-migration

Conversation

@methran1304
Copy link
Copy Markdown
Contributor

@methran1304 methran1304 commented Feb 2, 2026

Closes #2341

This PR introduces xUnit v2 to v3 package upgrade for UnitTests project only.

Proposed Changes

  • Added xunit.v3 package reference.
  • Removed xunit v2.9.3
  • Removed xunit.runner.visualstudio as xUnit v3 uses an in-process console runner by default
  • Removed Xunit.SkippableFact as xUnit v3 has native support for skipping tests
  • Removed Microsoft.NET.Test.Sdk. No longer required because of xUnit v3's in-process runner mode
  • Removed unused import Microsoft.VisualStudio.TestPlatform.ObjectModel that was a leftover from the removed Test SDK
  • Replaced Skip.If() with Assert.Skip()

@raman-m raman-m added DevOps DevOps tasks: CI-CD, environments, and other scripts, configurations NET10 .NET 10 release labels Feb 2, 2026
@raman-m raman-m added this to the .NET 10 milestone Feb 2, 2026
@raman-m raman-m changed the title UnitTests Project xUnit v3 Migration #2341 UnitTests project xUnit v3 migration Feb 2, 2026
@raman-m
Copy link
Copy Markdown
Member

raman-m commented Feb 2, 2026

Thanks for the PR, but it is still in draft.
Why am I seeing all these fake changes caused by altered line endings in the Files changed tab? I'm unable to do a code review...

@methran1304 methran1304 closed this Feb 2, 2026
@methran1304 methran1304 changed the title #2341 UnitTests project xUnit v3 migration #2341 UnitTests project xUnit v3 migration (Ignore) Feb 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DevOps DevOps tasks: CI-CD, environments, and other scripts, configurations NET10 .NET 10 release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate testing projects to xUnit.net v3

2 participants