C
C#9mo ago
Camster

❔ 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?
No description
10 Replies
x0rld
x0rld9mo ago
change C# version like they say
Camster
Camster9mo ago
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
No description
x0rld
x0rld9mo ago
eh maybe it's a sql project limitation idk
Camster
Camster9mo ago
Hmm, okay
x0rld
x0rld9mo ago
I just checked it's a limitation
Angius
Angius9mo ago
invalid nullable value Enable
Tells 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#
Camster
Camster9mo ago
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 🙂
Angius
Angius9mo ago
Dunno tbh, I never created or used an SQL project
Camster
Camster9mo ago
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
Accord
Accord9mo ago
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.