Skip to content

Commit

Permalink
asyncapi#196 Ignore expected warning (ASP0014 needs asyncapi#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
Senn Geerts authored and Senn Geerts committed Jul 13, 2024
1 parent 7b22ce0 commit ba8dd8e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/StreetlightsAPI.TopLevelStatement/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
the AsyncAPI.Saunter.Generator.Cli tool can generate specs for projects targetting .NET6 and .NET8. -->
<TargetFramework>net8.0</TargetFramework>
<IsPackable>false</IsPackable>

<!-- ASP0014: Suggest using top level route registrations instead of UseEndpoints: to be fixed with issue #173 -->
<NoWarn>$(NoWarn);ASP0014</NoWarn>

<!-- Example settings for "AsyncAPI.Saunter.Generator.Build", they are all option though -->
<AsyncAPIGenerateDocumentsOnBuild>true</AsyncAPIGenerateDocumentsOnBuild>
Expand Down

0 comments on commit ba8dd8e

Please sign in to comment.