How do I create .NET framework 4.6 version of XUnit project in Visual Studio 2019?

  • First use the xUnit Test Project (.NET Core) project template.

  • Then go edit the .csproj file and change <TargetFramework>netcoreapp2.2</TargetFramework> to <TargetFramework>net462</TargetFramework>.

  • That’s it. 🙂

Leave a Comment