Permalink
Browse files

Added RazorBuildProvider brou-ha-ha to Sandbox

  • Loading branch information...
1 parent c9067e7 commit ff0732d5afaa71396e4aca596b7510e382958e45 @markrendle committed Mar 21, 2012
Showing with 35 additions and 10 deletions.
  1. +8 −0 Sandbox/Sandbox.csproj
  2. +1 −1 Sandbox/Views/Form.cshtml
  3. +25 −9 Sandbox/Web.config
  4. +1 −0 Simple.Web.Razor/RazorViews.cs
View
@@ -43,6 +43,7 @@
<HintPath>..\packages\JsonFx.2.0.1106.2610\lib\net40\JsonFx.dll</HintPath>
</Reference>
<Reference Include="Microsoft.CSharp" />
+ <Reference Include="System.Web.Abstractions" />
<Reference Include="System.Web.DynamicData" />
<Reference Include="System.Web.Entity" />
<Reference Include="System.Web.ApplicationServices" />
@@ -51,6 +52,13 @@
<Reference Include="System.Core" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Web.Extensions" />
+ <Reference Include="System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
+ <Reference Include="System.Web.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
+ <Reference Include="System.Web.Routing" />
+ <Reference Include="System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
+ <Reference Include="System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
+ <Private>True</Private>
+ </Reference>
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Drawing" />
<Reference Include="System.Web" />
@@ -7,4 +7,4 @@
<body>
<form action="/submit" method="POST"><input type="text" name="Text" /><input type="submit" /></form>
</body>
-</html>
+</html>
View
@@ -1,18 +1,34 @@
<?xml version="1.0"?>
-
-<!--
- For more information on how to configure your ASP.NET application, please visit
- http://go.microsoft.com/fwlink/?LinkId=169433
- -->
-
<configuration>
- <system.web>
- <compilation debug="true" targetFramework="4.0" />
+ <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="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>
+ <system.web>
+ <compilation debug="true" targetFramework="4.0">
+ <assemblies>
+ <add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
+ <add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
+ <add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
+ <add assembly="System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
+ </assemblies>
+ <buildProviders>
+ <add
+ extension=".cshtml"
+ type="System.Web.WebPages.Razor.RazorBuildProvider, System.Web.WebPages.Razor"/>
+ </buildProviders>
+ </compilation>
</system.web>
<system.webServer>
<handlers>
<add name="Simple.Web" path="*" verb="*" type="Simple.Web.SimpleWebHttpHandler"/>
</handlers>
</system.webServer>
-
+ <system.web.webPages.razor>
+ <host factoryType="System.Web.WebPages.Razor.WebRazorHostFactory, System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
+ <pages pageBaseType="Simple.Web.Razor.SimpleTemplateBase">
+ </pages>
+ </system.web.webPages.razor>
</configuration>
@@ -111,6 +111,7 @@ private static void InitializeIfNot()
if (!_initialized)
{
Initialize();
+ _initialized = true;
}
}
}

0 comments on commit ff0732d

Please sign in to comment.