dotnet / dotnet/command-line-api
How to integrate with AspNetCore minimal API projects
- Dominant language
- C#
- Stars
- 3.7k
- Forks
- 428
- PR merge metrics
- No merged PRs in 30d
Description
Let's say, I created a web application project using the new [minimal API](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/minimal-apis?view=aspnetcore-7.0) and now want to use this library, to add some commandline features to configure its startup. How would I do that?
Maybe this could need some more documentation. A code sample would be helpful. Or is this currently not supported and one should switch back to having a `Startup` class and initialize it like [here](https://github.com/dotnet/command-line-api/blob/main/samples/HostingPlayground/Program.cs)? But also then, a sample would be helpful, how it can be integrated with the AspNetCore webhost stuff.
Contributor guide
Assessment
This issue has not been assessed yet.