C#C
C#9mo ago
7 replies
Warchortle

.Net Framework project complains about nullable not being supported in C# 7.3

I have a very old project my team is now working on and for some reason when I try to build it in VS 2022 I get the following error

Invalid 'nullable' value: 'Enable' for C# 7.3. Please use language version '8.0' or greater.


There are two projects in here that use .net 6 and 7. Most projects are using net4.8 I checked the csproj files they don't have <Nullable>enable</Nullable>

The wierd thing is this is only happening on my machine. Any ideas on why VS thinks nullable is enabled on projects using net48. There is no Directory.Build.props file either.
Was this page helpful?