Created
August 5, 2013 15:21
-
-
Save thefringeninja/6156750 to your computer and use it in GitHub Desktop.
Regular nancy razor config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<configuration> | |
<configSections> | |
<sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> | |
<section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false"/> | |
</sectionGroup> | |
<section name="razor" type="Nancy.ViewEngines.Razor.RazorConfigurationSection, Nancy.ViewEngines.Razor"/> | |
</configSections> | |
<appSettings> | |
<add key="webPages:Enabled" value="false"/> | |
</appSettings> | |
<razor disableAutoIncludeModelNamespace="false"> | |
<assemblies> | |
<add assembly="System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/> | |
<add assembly="MyNancyProject.Web"/> | |
</assemblies> | |
<namespaces> | |
<add namespace="Nancy.ViewEngines.Razor"/> | |
<add namespace="MyNancyProject.Web"/> | |
<add namespace="MyNancyProject.Web.Helpers"/> | |
<add namespace="MyNancyProject.Web.Model"/> | |
<add namespace="MyNancyProject.Web.Views"/> | |
<add namespace="MyNancyProject.Web.ViewModels"/> | |
</namespaces> | |
</razor> | |
<system.web> | |
<compilation debug="true" targetFramework="4.5"> | |
<buildProviders> | |
<add extension=".cshtml" type="Nancy.ViewEngines.Razor.BuildProviders.NancyCSharpRazorBuildProvider, Nancy.ViewEngines.Razor.BuildProviders"/> | |
<add extension=".vbhtml" type="Nancy.ViewEngines.Razor.BuildProviders.NancyVisualBasicRazorBuildProvider, Nancy.ViewEngines.Razor.BuildProviders"/> | |
</buildProviders> | |
</compilation> | |
<httpRuntime targetFramework="4.5"/> | |
<httpHandlers> | |
<add verb="*" type="Nancy.Hosting.Aspnet.NancyHttpRequestHandler" path="*"/> | |
</httpHandlers> | |
<pages controlRenderingCompatibilityVersion="4.0"/> | |
</system.web> | |
<system.webServer> | |
<validation validateIntegratedModeConfiguration="false"/> | |
<handlers> | |
<add name="Nancy" verb="*" type="Nancy.Hosting.Aspnet.NancyHttpRequestHandler" path="*"/> | |
</handlers> | |
</system.webServer> | |
<system.web.webPages.razor> | |
<pages pageBaseType="Nancy.ViewEngines.Razor.NancyRazorViewBase"> | |
<namespaces> | |
<add namespace="Nancy.ViewEngines.Razor"/> | |
<add namespace="MyNancyProject.Web"/> | |
<add namespace="MyNancyProject.Web.Helpers"/> | |
<add namespace="MyNancyProject.Web.Model"/> | |
<add namespace="MyNancyProject.Web.Views"/> | |
<add namespace="MyNancyProject.Web.ViewModels"/> | |
</namespaces> | |
</pages> | |
</system.web.webPages.razor> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment