Quantcast
Channel: RazorGenerator Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 525

Commented Issue: Problems with. 4.5 and net MVC4 [103]

$
0
0
I followed exactly the steps described in this post.
http://stacktoheap.com/blog/2013/01/19/precompiling-razor-views-in-asp-dot-net-mvc-3/

But the error is displayed below

> ASP.NET runtime error: There is no build provider registered for the extension '.cshtml'. You can register one in the <compilation><buildProviders> section in machine.config or web.config. Make sure is has a BuildProviderAppliesToAttribute attribute which includes the value 'Web' or 'All'.


__What am I doing wrong?__
Comments: When I remove any reference to RazorGenerator from .csproj the error does not occur. I tried to copy the Web.config described in the post but the same error appears. When the edit .csproj with this: ``` <MvcBuildViews>true</MvcBuildViews> <PrecompileRazorFiles>false</PrecompileRazorFiles> <!--<Import Project="$(SolutionDir)\packages\RazorGenerator.MsBuild.1.5.3.0\tools\RazorGenerator.targets"/> <Target Name="BeforeBuild"> <ItemGroup> <Content Remove="Views\**\*.cshtml" /> <None Include="Views\**\*.cshtml" /> </ItemGroup> </Target>--> ``` everything works perfectly. I do not know what else to do.

Viewing all articles
Browse latest Browse all 525

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>