You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if this is a bug or a skill issue (e.g. i'm crap).
I'm add a Directory.Build.props file to the root directory in my solution/repo. Works great against my other projects but this single DB project is failing with:
08630: Invalid 'nullable' value: 'Enable' for C# 7.3. Please use language version '8.0' or greater.
I've tried to be 'smart' with my D.B.props file:
<Project>
<!-- Exclude SQL Database projects by checking OutputType -->
<PropertyGroup Condition="'$(OutputType)' != 'Database'">
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
</PropertyGroup>
<!-- Only set TargetFramework for non-MAUI and non-SQL Database projects -->
<PropertyGroup Condition="'$(UseMaui)' != 'true' AND '$(OutputType)' != 'Database'">
<TargetFramework>net9.0</TargetFramework>
</PropertyGroup>
</Project>
but it still errors.
I also tried to converting the old-style .sqlproj to the new SDK style project but I get a similar issue/error. (targetting <Sdk Name="Microsoft.Build.Sql" Version="1.0.0" />
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
👋🏻 Hi folks,
Not sure if this is a bug or a skill issue (e.g. i'm crap).
I'm add a
Directory.Build.propsfile to the root directory in my solution/repo. Works great against my other projects but this single DB project is failing with:08630: Invalid 'nullable' value: 'Enable' for C# 7.3. Please use language version '8.0' or greater.I've tried to be 'smart' with my
D.B.propsfile:but it still errors.
I also tried to converting the old-style
.sqlprojto the new SDK style project but I get a similar issue/error. (targetting<Sdk Name="Microsoft.Build.Sql" Version="1.0.0" />Is this a known problem?
All reactions