Home > Software design >  Where is the xUnit project type in Visual Studio 2022?
Where is the xUnit project type in Visual Studio 2022?

Time:07-03

I just installed Visual Studio 2022 but I cannot add a new xUnit project. When I go to the File > New > Project... screen, the only type of test project it offers me is MSTest:

enter image description here

I have added the following NuGet packages:

enter image description here

I have closed and reopened VS 2022, but it still won't give me the option of creating an xUnit project.

Is there anything else I need to configure or install to be able to add xUnit projects to my solution? (for reference, I'm using Visual Studio 2022 Community version 17.2.5)

CodePudding user response:

I think you are missing some workloads from Visual Studio Installation. It appears here -

Visual Studio 2022 XUnit Project Template

  • Related