diff --git a/examples/StreetlightsAPI.TopLevelStatement/Program.cs b/examples/StreetlightsAPI.TopLevelStatement/Program.cs
index 164eb0c..2e59f1c 100644
--- a/examples/StreetlightsAPI.TopLevelStatement/Program.cs
+++ b/examples/StreetlightsAPI.TopLevelStatement/Program.cs
@@ -52,6 +52,8 @@
app.UseRouting();
app.UseCors(configure => configure.AllowAnyOrigin().AllowAnyMethod());
+// to be fixed with issue #173
+#pragma warning disable ASP0014 // Suggest using top level route registrations instead of UseEndpoints
app.UseEndpoints(endpoints =>
{
endpoints.MapAsyncApiDocuments();
@@ -59,6 +61,7 @@
endpoints.MapControllers();
});
+#pragma warning restore ASP0014 // Suggest using top level route registrations instead of UseEndpoints
await app.StartAsync();
diff --git a/examples/StreetlightsAPI.TopLevelStatement/StreetlightsAPI.TopLevelStatement.csproj b/examples/StreetlightsAPI.TopLevelStatement/StreetlightsAPI.TopLevelStatement.csproj
index 64639d4..4e4dfcc 100644
--- a/examples/StreetlightsAPI.TopLevelStatement/StreetlightsAPI.TopLevelStatement.csproj
+++ b/examples/StreetlightsAPI.TopLevelStatement/StreetlightsAPI.TopLevelStatement.csproj
@@ -5,9 +5,6 @@
the AsyncAPI.Saunter.Generator.Cli tool can generate specs for projects targetting .NET6 and .NET8. -->
net8.0
false
-
-
- $(NoWarn);ASP0014
true
diff --git a/src/AsyncAPI.Saunter.Generator.Cli/Program.cs b/src/AsyncAPI.Saunter.Generator.Cli/Program.cs
index 3502ea7..58bfef2 100644
--- a/src/AsyncAPI.Saunter.Generator.Cli/Program.cs
+++ b/src/AsyncAPI.Saunter.Generator.Cli/Program.cs
@@ -15,3 +15,5 @@
var app = ConsoleApp.Create();
app.Add();
app.Run(args);
+
+Environment.ExitCode = 0;