Created
May 9, 2013 15:46
-
-
Save ashutoshraina/5548305 to your computer and use it in GitHub Desktop.
Nancy Configuration for Razor Web.config
This file contains hidden or 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" encoding="utf-8"?> | |
<configuration> | |
<configSections> | |
<section name="razor" type="Nancy.ViewEngines.Razor.RazorConfigurationSection, Nancy.ViewEngines.Razor" /> | |
<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="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" /> | |
<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> | |
</configSections> | |
<razor disableAutoIncludeModelNamespace="false"> | |
<assemblies> | |
<add assembly="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> | |
<add assembly="Nancy.Validation.DataAnnotations" /> | |
<add assembly="Nancy" /> | |
<add assembly="Showdown.Nancy" /> | |
<add assembly="Showdown.Model"/> | |
</assemblies> | |
<namespaces> | |
<add namespace="Showdown.Model"/> | |
<add namespace="Showdown.Nancy.ViewModels" /> | |
<add namespace="Nancy.Validation" /> | |
<add namespace="System.Globalization" /> | |
<add namespace="System.Collections.Generic" /> | |
<add namespace="System.Linq" /> | |
<add namespace="System"/> | |
<add namespace="System.Configuration" /> | |
<add namespace="Nancy.ViewEngines.Razor" /> | |
</namespaces> | |
</razor> | |
<system.web> | |
<globalization culture="en-US"/> | |
<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></system.web> | |
<location path="assets"> | |
<system.webServer> | |
<handlers> | |
<remove name="Nancy" /> | |
</handlers> | |
</system.webServer> | |
</location> | |
<runtime> | |
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> | |
<dependentAssembly> | |
<assemblyIdentity name="NLog" publicKeyToken="5120e14c03d0593c" culture="neutral" /> | |
<bindingRedirect oldVersion="0.0.0.0-2.0.1.0" newVersion="2.0.1.0" /> | |
</dependentAssembly> | |
</assemblyBinding> | |
</runtime> | |
<system.web.webPages.razor> | |
<pages pageBaseType="Nancy.ViewEngines.Razor.NancyRazorViewBase"> | |
<namespaces> | |
<add namespace="Nancy.ViewEngines.Razor" /> | |
</namespaces> | |
</pages> | |
</system.web.webPages.razor> | |
<system.webServer> | |
<validation validateIntegratedModeConfiguration="false" /> | |
<handlers> | |
<add name="Nancy" verb="*" type="Nancy.Hosting.Aspnet.NancyHttpRequestHandler" path="*" /> | |
</handlers> | |
</system.webServer> | |
<appSettings> | |
<add key="webPages:Enabled" value="false" /> | |
</appSettings> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment