1

I've seen the question "what is the function of webpages:Enabled in MVC 3 web.config" but the answer merely explains that setting it to "false" disables use of CSHTML pages (although the is no link to the documentation).

I have a project which fails to build unless the line <add key="webpages:Enabled" value="true"> is removed from the web.config file.

Can someone (provide a link to) tell me what the effect of omitting it is? Is the default to allow or deny CSHTML pages?

Thanks

Community
  • 1
  • 1
StarNamer
  • 650
  • 1
  • 11
  • 27

1 Answers1

0

Default value is null which is interpreted as 'true' that would enable *.cshtml pages to be accessible directly. You may refer to the code base here for reference: https://aspnetwebstack.codeplex.com/SourceControl/latest#src/System.Web.WebPages.Deployment/WebPagesDeployment.cs