I have a solution with 2 projects and a unit test project in it. When I try to build it in my windows machine, I get the following error message
Error NU1201: Project SampleProject is not compatible with net7.0 (.NETCoreApp,Version=v7.0). Project SampleProject does not support any target frameworks. This error is from the test project - SampleProject.Tests
What is the cause of this issue? If I remove .net7-0 from the targetframework of my projects, the app builds without building test project. How do I fix this?