dotnet / aspnetcore

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
https://asp.net
MIT License
35.16k stars 9.92k forks source link

[Trimming] MVC #41767

Open JamesNK opened 2 years ago

JamesNK commented 2 years ago

Is there an existing issue for this?

Is your feature request related to a problem? Please describe the problem.

MVC should run in a trimmed app.

Note that trimming and MVC might not be compatible. In that case, projects should be correctly annotated. e.g. MapControllers has a [RequiresUnreferencedCode] attribute on it and linker warnings are suppressed.

Describe the solution you'd like

Shipping projects under https://github.com/dotnet/aspnetcore/tree/main/src/Mvc need to add support for trimming.

See https://github.com/dotnet/aspnetcore/blob/main/docs/Trimming.md for instructions

Known issues to resolve:

Tasks:

Additional context

No response

ghost commented 2 years ago

Thanks for contacting us.

We're moving this issue to the .NET 7 Planning milestone for future evaluation / consideration. We would like to keep this around to collect more feedback, which can help us with prioritizing this work. We will re-evaluate this issue, during our next planning meeting(s). If we later determine, that the issue has no community involvement, or it's very rare and low-impact issue, we will close it - so that the team can focus on more important and high impact issues. To learn more about what to expect next and how this issue will be handled you can read more about our triage process here.