Incompat. Target Fram. on VS Community

Creating and Running Unit Tests for Managed Code

I’m trying to create a unit test in my project and following the tutorial from Microsoft. When I reach step 5, I get the following error message:

Project(Incompatible target framework: .NETFramework, version=v4.7)

Is there an available solution to this issue?

Yes, the solution is to change the target framework of your project to a version compatible with the unit testing framework. The tutorial recommends targeting .NET Core or .NET Standard. You can change the target framework by right-clicking on the project in the Solution Explorer, selecting Properties, and then changing the Target Framework under the Application tab.