Description
Is there an existing issue for this?
- I have searched the existing issues
Is your feature request related to a problem? Please describe the problem.
We used to have global helpers via the App_Code
folder. They were INCREDIBLY useful for managing a complicated codebase with lots of common functionality.
That was removed, and we were given other idioms: view components, partials, tag helpers, local helpers, etc. Although those are useful, they are absolutely not the same. There are loads of common small snippets that one typically reuses in many views. One cannot implement a view component or partial for each. That does not scale. This is a real pain point for any non-trivial system.
This was requested many times over the years (e.g. 1, e.g. 2). There are many StackOverflow questions which show people struggling with this, including one with 75 upvotes and 33k views.
Describe the solution you'd like
Every web framework has such functionality. ASP.NET did too. This would be a small addition which would provide immense and measurable benefit to your users, who've asked for it in massive numbers over many years.
PLEASE please consider giving us global helpers in v10.
Additional context
Thank you for considering it!