❔ Invalid 'nullable' value in Visual Studio
I'm getting this error in Visual Studio, although it doesn't preventing Building. Problem is the error is for a SQL project, which doesn't even have a nullable property that I can tell. Any idea on how to get rid of this?
10 Replies
change C# version like they say
C# version is actually .NET Framework. I'm not sure why. I don't remember specifying a .NET version when creating the SQL project and I don't see any option to change it to .NET
eh
maybe it's a sql project limitation idk
Hmm, okay
I just checked it's a limitation
invalid nullable value EnableTells me you have
#nullable enable
pragma somewhere, or <nullable>enable</nullable>
in the csproj
Neither would be availaible on such an ancient version of .NET and C#Agreed. Problem is I opened the SQL project file in notepad++ and can't find the null value anywhere.
Maybe it's in one of the tables' sql file?!
I have to go pick kids up from school, will be back soon. Thanks for your help 🙂
Dunno tbh, I never created or used an SQL project
It might be the Sql in one of the tables. That error message only came up recently. I’ll start by deleting all tables from the project and adding them back one by one
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.