question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Configuration in ASP.NET Core 6

See original GitHub issue

I’m upgrading an ASP.NET Core project from v5 to v6. I’m using this library.

The new docs say I should register Swashbuckle like so:

builder.Services.AddEndpointsApiExplorer();    // what is this?
builder.Services.AddSwaggerGen();

That AddEndpointsApiExplorer is new to v6. Everything works as expected whether I add it or not.

Given that method’s name, I’m assuming it is related / similar to this library. How is it related? Should I use it or skip it?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
lonix1commented, Apr 20, 2022

Lol, didn’t see it… the autocomplete failed me!

1reaction
commonsensesoftwarecommented, Apr 20, 2022

The tag aspnet-api-versioning already exists. I come through there fairly regularly. 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuration in ASP.NET Core
The ASP.NET Core templates create a WebApplicationBuilder which contains the host. While some configuration can be done in both the host and the ......
Read more >
ASP.NET Core 6 how to access Configuration during startup
ConfigurationManager configuration = builder.Configuration; // allows both to access and to set up the config IWebHostEnvironment environment = ...
Read more >
How to create a custom configuration provider in ASP.NET ...
Creating configuration providers in ASP.NET Core 6 ... A configuration provider is typically a C# class that can retrieve configuration data from ...
Read more >
Adding Configuration to .NET 6 Projects using the IOptions ...
Let's Start with the API · Step 1: Add config · Step 2: Add a Strongly Typed config Class · Step 3: Register...
Read more >
Looking inside ConfigurationManager in .NET 6
NET team added a new configuration type, ConfigurationManager . This type implements both IConfigurationBuilder and IConfigurationRoot . By ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found