@helper directive no longer works out of the box in ASP.NET5 MVC6 beta4.
问题 Since I updated my ASP.NET5 project to beta4 (the one included with Visual Studio 2015 RC), any of my Razor views where I use a helper, such as: @helper foo() { <h2>Bar</h2> } results in the following error: error CS0103: The name 'helper' does not exist in the current context. Is the @helper directive no longer supported? Can someone point me to anything useful about the issue? 回答1: The @helper directive was removed since beta 4 because it imposed too many restrictions on other Razor