natemcmaster / DotNetCorePlugins

.NET Core library for dynamically loading code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Net 6 Support - Minimal API

Simonl9l opened this issue · comments

Is your feature request related to a problem? Please describe.
With the release of Net 6.0 and Minimal API it would be great to have the equivalent of the Support for MVC and Razor in an environment that no longer has a Startup. and allows an easy way to hookup classes that provide extension to IEndpointRouteBuilder.

Describe the solution you'd like
As above, such that one could:

 var app = WebApplication.CreateBuilder().Build();
 app.MapPluginFromAssemblyFile(pluginFile)

Describe alternatives you've considered
None yet

Additional context
https://docs.microsoft.com/en-us/aspnet/core/fundamentals/minimal-apis?view=aspnetcore-6.0

I would be willing to accept a pull request for this.

This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Please comment if you believe this should remain open, otherwise it will be closed in 14 days. Thank you for your contributions to this project.

Closing due to inactivity.
If you are looking at this issue in the future and think it should be reopened, please make a commented here and mention natemcmaster so he sees the notification.