Skip to content

Commit 372dd25

Browse files
seantleonardayush3797
authored andcommitted
Update Npgsql to 7.0.7 for net6 (#2214)
## Why make this change? - Closes #2206 - As noted in #2207, now that false positive vulnerability alert no longer shows due to correct patched versions being recognized by dotnet restore. - Merging Directory to 1.1 branch. ## What is this change? - For .net6 updates npgsql to 7.0.7. - Removes "ignore" tag on serialization/deserialization test that broke because of the npgsql version used. ## How was this tested? - [x] Unit Tests - `dotnet format` step passes without dotnet restore vulnerability alert. - unit test `TestDictionaryDatabaseObjectSerializationDeserialization` unignored
1 parent 5c34ed5 commit 372dd25

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/Directory.Packages.props

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@
6464
<PackageVersion Include="Microsoft.AspNetCore.TestHost" Version="6.0.29" />
6565
<PackageVersion Include="Microsoft.Extensions.Configuration.Json" Version="6.0.0" />
6666
<PackageVersion Include="Microsoft.Extensions.Configuration.Binder" Version="6.0.0" />
67-
<!--Once dotnet restore properly resolves that 'Npgsql' 7.0.7 is not vulnerable, set this ref to 7.0.7.-->
68-
<PackageVersion Include="Npgsql" Version="8.0.3" />
67+
<PackageVersion Include="Npgsql" Version="7.0.7" />
6968
</ItemGroup>
7069
</Project>

src/Service.Tests/Unittests/SerializationDeserializationTests.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,9 +259,6 @@ public void TestColumnDefinitionNegativeCases()
259259
/// Temporarily ignore test for .net6 due to npgsql issue.
260260
/// </summary>
261261
[TestMethod]
262-
#if NET6_0
263-
[Ignore]
264-
#endif
265262
public void TestDictionaryDatabaseObjectSerializationDeserialization()
266263
{
267264
InitializeObjects();

0 commit comments

Comments
 (0)