diff --git a/examples/StreetlightsAPI.TopLevelStatement/Program.cs b/examples/StreetlightsAPI.TopLevelStatement/Program.cs
index 79aa922..164eb0c 100644
--- a/examples/StreetlightsAPI.TopLevelStatement/Program.cs
+++ b/examples/StreetlightsAPI.TopLevelStatement/Program.cs
@@ -14,7 +14,7 @@
LogManager.Setup().LoadConfigurationFromAppSettings();
var builder = WebApplication.CreateBuilder(args);
-builder.Host.ConfigureLogging(logging => logging.AddSimpleConsole(console => console.SingleLine = true));
+builder.Logging.AddSimpleConsole(console => console.SingleLine = true);
builder.Host.UseNLog();
// Add Saunter to the application services.
diff --git a/examples/StreetlightsAPI.TopLevelStatement/StreetlightsAPI.TopLevelStatement.csproj b/examples/StreetlightsAPI.TopLevelStatement/StreetlightsAPI.TopLevelStatement.csproj
index 4e4dfcc..64639d4 100644
--- a/examples/StreetlightsAPI.TopLevelStatement/StreetlightsAPI.TopLevelStatement.csproj
+++ b/examples/StreetlightsAPI.TopLevelStatement/StreetlightsAPI.TopLevelStatement.csproj
@@ -5,6 +5,9 @@
the AsyncAPI.Saunter.Generator.Cli tool can generate specs for projects targetting .NET6 and .NET8. -->
net8.0
false
+
+
+ $(NoWarn);ASP0014
true