开发者

MVC3 RC Razor @helper locations

In the introduction to Razor on ScottGu's blog, he mentioned placing the @helpers inside Views\Helpers. I tried doing so in the RC and after a lot of 开发者_如何转开发searching, I found out that the helpers should be in the App_Code folder. I don't need my helpers in another assembly (especially if they're specific to this project), and having them way up in the App_Code seems ugly IMO. Is there a current solution to have the these helpers inside a View\Helpers folder?


Now we have detailed blog post on this issue at first-hand by Scott Gu

ASP.NET MVC 3 and the @helper syntax within Razor


I am afraid they didn't yet implement this feature yet, at least not in the RC build.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜