-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWeb.config
41 lines (41 loc) · 2.1 KB
/
Web.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?xml version="1.0"?>
<configuration>
<!--Put this in the root DNN Web.config-->
<!--<samplemvc.mvc>
<assemblies>
~1~List all assembly names to look in for Mvc routes@1@
<add assembly="SampleMVC" />
</assemblies>
~1~Other MVC config could go here@1@
</samplemvc.mvc>-->
<configSections>
<!--Put this in the root DNN Web.config-->
<!--<section name="samplemvc.mvc" type="SampleMVC.Modules.SampleMVC.Mvc.MvcConfigSection"/>-->
<sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor">
<section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor" requirePermission="false" />
<section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor" requirePermission="false" />
</sectionGroup>
</configSections>
<system.web.webPages.razor>
<host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc"/>
<pages pageBaseType="DotNetNuke.Web.Mvc.Framework.DnnWebViewPage">
<namespaces>
<add namespace="System.Linq"/>
<add namespace="System.Web.Helpers" />
<add namespace="System.Web.Mvc" />
<add namespace="System.Web.Mvc.Ajax" />
<add namespace="System.Web.Mvc.Html" />
<add namespace="System.Web.Routing" />
<add namespace="System.Web.WebPages" />
<add namespace="DotNetNuke.Web.Mvc.Helpers"/>
</namespaces>
</pages>
</system.web.webPages.razor>
<system.codedom>
<compilers>
<!--Not used by project but prevents intellisense errors. This needs to also be in the Web.config in the root DNN folder-->
<compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
warningLevel="4" compilerOptions="/langversion:latest /nowarn:1659;1699;1701"/>
</compilers>
</system.codedom>
</configuration>