Skip to content

Commit

Permalink
Upgraded Single Dynamic content
Browse files Browse the repository at this point in the history
  • Loading branch information
dzhenko committed Mar 23, 2016
1 parent f174747 commit e8ae9fa
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using System.Web;
using System.Web.Mvc;
using System.Web.WebPages;
using RazorGenerator.Mvc;

[assembly: WebActivatorEx.PostApplicationStartMethod(typeof(SingleDynamicContent.RazorGeneratorMvcStart), "Start")]

namespace SingleDynamicContent {
public static class RazorGeneratorMvcStart {
public static void Start() {
var engine = new PrecompiledMvcEngine(typeof(RazorGeneratorMvcStart).Assembly) {
UsePhysicalViewsIfNewer = HttpContext.Current.Request.IsLocal
};

ViewEngines.Engines.Insert(0, engine);

// StartPage lookups are done by WebPages.
VirtualPathFactoryManager.RegisterVirtualPathFactory(engine);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,15 @@
<Reference Include="Ninject">
<HintPath>..\packages\Ninject.3.2.2.0\lib\net45-full\Ninject.dll</HintPath>
</Reference>
<Reference Include="Ninject.Web.Common">
<HintPath>..\packages\Ninject.Web.Common.3.2.3.0\lib\net45-full\Ninject.Web.Common.dll</HintPath>
</Reference>
<Reference Include="RazorEngine">
<HintPath>..\packages\Sitefinity.RazorEngine.3.0.8.0\lib\net40\RazorEngine.dll</HintPath>
</Reference>
<Reference Include="RazorGenerator.Mvc">
<HintPath>..\packages\RazorGenerator.Mvc.2.3.12\lib\net40\RazorGenerator.Mvc.dll</HintPath>
</Reference>
<Reference Include="ServiceStack">
<HintPath>..\packages\ServiceStack.Signed.4.0.44\lib\net40\ServiceStack.dll</HintPath>
</Reference>
Expand All @@ -65,6 +71,7 @@
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Web" />
<Reference Include="System.Web.Helpers, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.Helpers.dll</HintPath>
Expand Down Expand Up @@ -109,15 +116,19 @@
<Reference Include="Telerik.Sitefinity">
<HintPath>..\packages\Telerik.Sitefinity.Core.8.2.5900.0\lib\net40\Telerik.Sitefinity.dll</HintPath>
</Reference>
<Reference Include="Telerik.Sitefinity.Frontend, Version=1.4.360.0, Culture=neutral, PublicKeyToken=b28c218413bdf563, processorArchitecture=MSIL">
<Reference Include="Telerik.Sitefinity.Frontend, Version=1.4.460.0, Culture=neutral, PublicKeyToken=b28c218413bdf563, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\Telerik.Sitefinity.Feather.Core.StandAlone.1.4.360.0\lib\net45\Telerik.Sitefinity.Frontend.dll</HintPath>
<HintPath>..\packages\Telerik.Sitefinity.Feather.Core.StandAlone.1.4.460.0\lib\net45\Telerik.Sitefinity.Frontend.dll</HintPath>
</Reference>
<Reference Include="Telerik.Sitefinity.Frontend.Data">
<HintPath>..\packages\Telerik.Sitefinity.Feather.Core.StandAlone.1.4.460.0\lib\net45\Telerik.Sitefinity.Frontend.Data.dll</HintPath>
</Reference>
<Reference Include="Telerik.Sitefinity.Model">
<HintPath>..\packages\Telerik.Sitefinity.Core.8.2.5900.0\lib\net40\Telerik.Sitefinity.Model.dll</HintPath>
</Reference>
<Reference Include="Telerik.Sitefinity.Mvc">
<HintPath>..\packages\Telerik.Sitefinity.Mvc.1.4.360.0\lib\net45\Telerik.Sitefinity.Mvc.dll</HintPath>
<Reference Include="Telerik.Sitefinity.Mvc, Version=1.4.460.0, Culture=neutral, PublicKeyToken=b28c218413bdf563, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\Telerik.Sitefinity.Mvc.1.4.460.0\lib\net45\Telerik.Sitefinity.Mvc.dll</HintPath>
</Reference>
<Reference Include="Telerik.Sitefinity.Personalization">
<HintPath>..\packages\Telerik.Sitefinity.Core.8.2.5900.0\lib\net40\Telerik.Sitefinity.Personalization.dll</HintPath>
Expand Down Expand Up @@ -155,8 +166,12 @@
<Reference Include="Telerik.Web.UI.Skins">
<HintPath>..\packages\Telerik.Web.UI.2015.3.930.40\lib\net40\Telerik.Web.UI.Skins.dll</HintPath>
</Reference>
<Reference Include="WebActivatorEx">
<HintPath>..\packages\WebActivatorEx.2.0.3\lib\net40\WebActivatorEx.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="App_Start\RazorGeneratorMvcStart.cs" />
<Compile Include="Mvc\Controllers\SingleDynamicContentController.cs" />
<Compile Include="Mvc\Models\SingleDynamicContentModel.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
Expand Down
16 changes: 16 additions & 0 deletions SingleDynamicContent/SingleDynamicContent/app.config
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,22 @@
<assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Telerik.OpenAccess.35.Extensions" publicKeyToken="7ce17eeaf1d59342" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2012.2.816.1" newVersion="2012.2.816.1" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Telerik.OpenAccess" publicKeyToken="7ce17eeaf1d59342" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2012.2.816.1" newVersion="2012.2.816.1" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
9 changes: 6 additions & 3 deletions SingleDynamicContent/SingleDynamicContent/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
<package id="Microsoft.IdentityModel" version="6.1.7600.16394" targetFramework="net45" />
<package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net45" />
<package id="Ninject" version="3.2.2.0" targetFramework="net45" />
<package id="Ninject.Web.Common" version="3.2.3.0" targetFramework="net45" />
<package id="RazorGenerator.Mvc" version="2.3.12" targetFramework="net45" />
<package id="ServiceStack.Client.Signed" version="4.0.44" targetFramework="net45" />
<package id="ServiceStack.Common.Signed" version="4.0.44" targetFramework="net45" />
<package id="ServiceStack.Interfaces" version="4.0.44" targetFramework="net45" />
Expand All @@ -15,8 +17,9 @@
<package id="Telerik.DataAccess.Core" version="2015.3.926.1" targetFramework="net45" />
<package id="Telerik.DataAccess.Fluent" version="2015.3.926.1" targetFramework="net45" developmentDependency="true" />
<package id="Telerik.Sitefinity.Core" version="8.2.5900.0" targetFramework="net45" />
<package id="Telerik.Sitefinity.Feather.Core" version="1.4.360.0" targetFramework="net45" />
<package id="Telerik.Sitefinity.Feather.Core.StandAlone" version="1.4.360.0" targetFramework="net45" />
<package id="Telerik.Sitefinity.Mvc" version="1.4.360.0" targetFramework="net45" />
<package id="Telerik.Sitefinity.Feather.Core" version="1.4.460.0" targetFramework="net45" />
<package id="Telerik.Sitefinity.Feather.Core.StandAlone" version="1.4.460.0" targetFramework="net45" />
<package id="Telerik.Sitefinity.Mvc" version="1.4.460.0" targetFramework="net45" />
<package id="Telerik.Web.UI" version="2015.3.930.40" targetFramework="net45" />
<package id="WebActivatorEx" version="2.0.3" targetFramework="net45" />
</packages>

0 comments on commit e8ae9fa

Please sign in to comment.