Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

Add support for @helper -files in any folder (not just App_Code) #1720

Closed
rafa-l opened this issue Dec 14, 2014 · 1 comment
Closed

Add support for @helper -files in any folder (not just App_Code) #1720

rafa-l opened this issue Dec 14, 2014 · 1 comment

Comments

@rafa-l
Copy link

rafa-l commented Dec 14, 2014

What happend to the @Helper in ASP.NET MVC 6?

I love the @Helper in MVC. The only thing i hate is, the requirement to put the .cshtml/.vbhtml file in the App_Code folder. I would love it, if i could add that files any where. (e.g. /Views/Helpers/MyHelper.cshtml).

Any new about that? Shouldn't be impossible with Roslyn now...

@yishaigalatzer
Copy link
Contributor

@rafa-l thanks for your input. We are already tracking this issue in #1130, I added your comment about app_code.

In ASPNET 5 and MVC 6, there is no such concept as special folders, but app_code was a way to precompile a set of files at startup, so we need to come up with a replacement concept that will separate the .cshtml files for views and helpers (or come up with something else, like a different extension).

The feature is right now slated for RC, but there is a reasonable chance it will happen in a later milestone, we will figure this out in the next few weeks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants