Is anyone having success with Intellisense in Razor when working in an
Orchard CodeGen'd module? I kept getting this error:
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'.
I put this in my web.config:
<assemblies>
<add assembly="System.Web.WebPages.Razor, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</assemblies>
<buildProviders>
<add
extension=".cshtml"
type="System.Web.WebPages.Razor.RazorBuildProvider,
System.Web.WebPages.Razor"/>
</buildProviders>
But now it says:
ASP.NET runtime error: Could not load file or assembly
'System.Web.WebPages.Razor' or one of its dependencies. The system cannot
find the file specified.
---
You are currently subscribed to orchard-discuss as: [email protected].
To unsubscribe send a blank email to
[email protected]