C
C#14mo 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 👻 🎃
x0rld 👻 🎃14mo ago
change C# version like they say
Camster
CamsterOP14mo 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 👻 🎃
x0rld 👻 🎃14mo ago
eh maybe it's a sql project limitation idk
Camster
CamsterOP14mo ago
Hmm, okay
x0rld 👻 🎃
x0rld 👻 🎃14mo ago
I just checked it's a limitation
Angius
Angius14mo 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
CamsterOP14mo 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
Angius14mo ago
Dunno tbh, I never created or used an SQL project
Camster
CamsterOP14mo 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
Accord14mo 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.
Want results from more Discord servers?
Add your server