From 75fdcff28495bdd643f6323133a7d411df71ab70 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 28 Aug 2024 17:06:59 -0700 Subject: [PATCH] Update MongoDB to 2.28 (#5477) There was a breaking change between 2.27 and 2.28 - MongoDB.Driver added an assembly strong name. We can now remove our NoWarn workarounds for MongoDB. Except Aspire.MongoDB.Driver still needs the NoWarn for 2 the health check and DiagnosticSource packages. Co-authored-by: Eric Erhardt --- Directory.Packages.props | 6 +++--- playground/mongo/Mongo.ApiService/Mongo.ApiService.csproj | 1 - .../Aspire.MongoDB.Driver/Aspire.MongoDB.Driver.csproj | 2 +- .../Aspire.Hosting.MongoDB.Tests.csproj | 1 - .../Aspire.MongoDB.Driver.Tests.csproj | 2 -- 5 files changed, 4 insertions(+), 8 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index abccfeb1a6..b8d53a4d66 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -69,7 +69,7 @@ - + @@ -107,8 +107,8 @@ - - + + diff --git a/playground/mongo/Mongo.ApiService/Mongo.ApiService.csproj b/playground/mongo/Mongo.ApiService/Mongo.ApiService.csproj index 8fcb250bec..335081373c 100644 --- a/playground/mongo/Mongo.ApiService/Mongo.ApiService.csproj +++ b/playground/mongo/Mongo.ApiService/Mongo.ApiService.csproj @@ -5,7 +5,6 @@ enable enable true - $(NoWarn);CS8002 diff --git a/src/Components/Aspire.MongoDB.Driver/Aspire.MongoDB.Driver.csproj b/src/Components/Aspire.MongoDB.Driver/Aspire.MongoDB.Driver.csproj index 58934f6d30..d116a10337 100644 --- a/src/Components/Aspire.MongoDB.Driver/Aspire.MongoDB.Driver.csproj +++ b/src/Components/Aspire.MongoDB.Driver/Aspire.MongoDB.Driver.csproj @@ -6,7 +6,7 @@ $(ComponentDatabasePackageTags) MongoDB $(SharedDir)MongoDB_300px.png A generic MongoDB client that integrates with Aspire. - $(NoWarn);CS8002 + $(NoWarn);CS8002 diff --git a/tests/Aspire.Hosting.MongoDB.Tests/Aspire.Hosting.MongoDB.Tests.csproj b/tests/Aspire.Hosting.MongoDB.Tests/Aspire.Hosting.MongoDB.Tests.csproj index 4816749be9..182419027a 100644 --- a/tests/Aspire.Hosting.MongoDB.Tests/Aspire.Hosting.MongoDB.Tests.csproj +++ b/tests/Aspire.Hosting.MongoDB.Tests/Aspire.Hosting.MongoDB.Tests.csproj @@ -2,7 +2,6 @@ $(NetCurrent) - $(NoWarn);CS8002 diff --git a/tests/Aspire.MongoDB.Driver.Tests/Aspire.MongoDB.Driver.Tests.csproj b/tests/Aspire.MongoDB.Driver.Tests/Aspire.MongoDB.Driver.Tests.csproj index 8c5747f18b..c3bffeeed7 100644 --- a/tests/Aspire.MongoDB.Driver.Tests/Aspire.MongoDB.Driver.Tests.csproj +++ b/tests/Aspire.MongoDB.Driver.Tests/Aspire.MongoDB.Driver.Tests.csproj @@ -2,8 +2,6 @@ $(NetCurrent) - - $(NoWarn);CS8002