I have a .NET 6 project. I want to retarget it to .NET 4.8. I did it from the project properties. I removed all instances of my code using newer language features. I have clean the solution also
However after doing it, I get an error while compiling
CS8630 Invalid 'nullable' value: 'Enable' for C# 7.3. Please use language version '8.0' or greater
at line 1, from a file called CSC in my project folder (weird, CSC is the name of the compiler, and I have no such file). I am not using nullable types surely and this error is not correct IMO. What do I do?
EDIT: @RahulSharma's answer isn't valid. It doesn't work, produces another error.