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. :)
- Install the
xUnit Test Project Template for .net framework
from here. - Create a new
xUnit Test Project (.NET Framework)
project