Skip to content

Commit 148e9f0

Browse files
committed
- Updated LangVersion to 14 and fixed one place using the new 'field' keyword.
- Ignoring NU1510 warnings when using the legacy MSBuild SDK (i.e. msbuild.exe), since it warns about package pruning that the .NET 10 SDK does not.
1 parent 7bb6e09 commit 148e9f0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Directory.Build.props

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
error. This list should be used sparingly to avoid important warnings
100100
being ignored.
101101
-->
102-
<WarningsNotAsErrors></WarningsNotAsErrors>
102+
<WarningsNotAsErrors Condition="$(MSBuildRuntimeType) == 'Full'">NU1510</WarningsNotAsErrors>
103103

104104
<!--
105105
If a build is failing due to vulnerable dependencies, you may temporarily
@@ -153,7 +153,7 @@
153153
https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/configure-language-version
154154
-->
155155
<PropertyGroup>
156-
<!-- The newest .NET SDK we support is .NET 9.0, which uses C# 13 -->
157-
<LangVersion>13</LangVersion>
156+
<!-- The newest .NET SDK we support is .NET 10.0, which uses C# 14 -->
157+
<LangVersion>14</LangVersion>
158158
</PropertyGroup>
159159
</Project>

src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/Server/SqlNormalizer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@ internal override int Size
129129
{
130130
return _size;
131131
}
132-
foreach (FieldInfoEx field in _fieldsToNormalize)
132+
foreach (FieldInfoEx fieldInfo in _fieldsToNormalize)
133133
{
134-
_size += field.Normalizer.Size;
134+
_size += fieldInfo.Normalizer.Size;
135135
}
136136
return _size;
137137
}

0 commit comments

Comments
 (0)