Skip to content

Commit

Permalink
Upgraded simple content block
Browse files Browse the repository at this point in the history
  • Loading branch information
dzhenko committed Mar 23, 2016
1 parent e8ae9fa commit 5af928c
Show file tree
Hide file tree
Showing 6 changed files with 67 additions and 8 deletions.
21 changes: 21 additions & 0 deletions SimpleContentBlock/App_Start/RazorGeneratorMvcStart.cs
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(SimpleContentBlock.RazorGeneratorMvcStart), "Start")]

namespace SimpleContentBlock {
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);
}
}
}
23 changes: 19 additions & 4 deletions SimpleContentBlock/SimpleContentBlock.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,15 @@
<Reference Include="Ninject">
<HintPath>packages\Ninject.3.2.2.0\lib\net40\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, Version=4.0.0.0, Culture=neutral, PublicKeyToken=e06fbc6124f57c43, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>packages\ServiceStack.Signed.4.0.44\lib\net40\ServiceStack.dll</HintPath>
Expand All @@ -75,6 +81,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 @@ -124,16 +131,20 @@
<SpecificVersion>False</SpecificVersion>
<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, Version=8.2.5900.0, Culture=neutral, PublicKeyToken=b28c218413bdf563, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<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, Version=8.2.5900.0, Culture=neutral, PublicKeyToken=b28c218413bdf563, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
Expand Down Expand Up @@ -183,8 +194,12 @@
<SpecificVersion>False</SpecificVersion>
<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\SimpleContentBlockController.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
Expand Down
6 changes: 6 additions & 0 deletions SimpleContentBlock/SimpleContentBlock.sln.GhostDoc.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<GhostDoc>
<IgnoreFilePatterns>
<IgnoreFilePattern>*.min.js</IgnoreFilePattern>
<IgnoreFilePattern>jquery*.js</IgnoreFilePattern>
</IgnoreFilePatterns>
</GhostDoc>
12 changes: 10 additions & 2 deletions SimpleContentBlock/app.config
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Telerik.OpenAccess" publicKeyToken="7ce17eeaf1d59342" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2014.3.1209.1" newVersion="2014.3.1209.1" />
<bindingRedirect oldVersion="0.0.0.0-2012.2.816.1" newVersion="2012.2.816.1" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Telerik.OpenAccess.35.Extensions" publicKeyToken="7ce17eeaf1d59342" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2014.3.1209.1" newVersion="2014.3.1209.1" />
<bindingRedirect oldVersion="0.0.0.0-2012.2.816.1" newVersion="2012.2.816.1" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Telerik.Web.UI" publicKeyToken="121fae78165ba3d4" culture="neutral" />
Expand All @@ -18,6 +18,14 @@
<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="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>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /></startup></configuration>
7 changes: 5 additions & 2 deletions SimpleContentBlock/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="net40" />
<package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net40" />
<package id="Ninject" version="3.2.2.0" targetFramework="net40" requireReinstallation="True" />
<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,7 +17,8 @@
<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.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.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>
6 changes: 6 additions & 0 deletions SingleDynamicContent/SingleDynamicContent.sln.GhostDoc.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<GhostDoc>
<IgnoreFilePatterns>
<IgnoreFilePattern>*.min.js</IgnoreFilePattern>
<IgnoreFilePattern>jquery*.js</IgnoreFilePattern>
</IgnoreFilePatterns>
</GhostDoc>

0 comments on commit 5af928c

Please sign in to comment.