Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 472
TheCloudlessSky Avatar asked Dec 08 '10 13:12

TheCloudlessSky


2 Answers

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

like image 114
Alexander Prokofyev Avatar answered Nov 10 '22 00:11

Alexander Prokofyev


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

like image 22
Darin Dimitrov Avatar answered Nov 10 '22 01:11

Darin Dimitrov