Configuration in ASP.NET Core 6
See original GitHub issueI’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:
- Created a year ago
- Comments:8
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Lol, didn’t see it… the autocomplete failed me!
The tag aspnet-api-versioning already exists. I come through there fairly regularly. 😉