Skip to content

Commit

Permalink
Upgraded kendo books widget
Browse files Browse the repository at this point in the history
  • Loading branch information
dzhenko committed Mar 23, 2016
1 parent 2062410 commit 176974f
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 4 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(KendoBooksWidget.RazorGeneratorMvcStart), "Start")]

namespace KendoBooksWidget {
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);
}
}
}
17 changes: 15 additions & 2 deletions KendoBooksWidget/KendoBooksWidget/KendoBooksWidget.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,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="System" />
<Reference Include="System.Core" />
<Reference Include="System.Web" />
Expand Down Expand Up @@ -82,13 +88,16 @@
<HintPath>..\packages\Telerik.Sitefinity.Core.8.2.5900.0\lib\net40\Telerik.Sitefinity.dll</HintPath>
</Reference>
<Reference Include="Telerik.Sitefinity.Frontend">
<HintPath>..\packages\Telerik.Sitefinity.Feather.Core.1.4.360.0\lib\net45\Telerik.Sitefinity.Frontend.dll</HintPath>
<HintPath>..\packages\Telerik.Sitefinity.Feather.Core.1.4.460.0\lib\net45\Telerik.Sitefinity.Frontend.dll</HintPath>
</Reference>
<Reference Include="Telerik.Sitefinity.Frontend.Data">
<HintPath>..\packages\Telerik.Sitefinity.Feather.Core.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>
<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 @@ -117,8 +126,12 @@
<Reference Include="Telerik.Sitefinity.Utilities">
<HintPath>..\packages\Telerik.Sitefinity.Core.8.2.5900.0\lib\net40\Telerik.Sitefinity.Utilities.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\KendoBooksController.cs" />
<Compile Include="Mvc\Models\Book.cs" />
<Compile Include="Mvc\Models\BooksViewModel.cs" />
Expand Down
4 changes: 4 additions & 0 deletions KendoBooksWidget/KendoBooksWidget/app.config
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
<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>
7 changes: 5 additions & 2 deletions KendoBooksWidget/KendoBooksWidget/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@
<package id="Microsoft.AspNet.WebPages" version="3.2.3" 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="Sitefinity.RazorEngine" version="3.0.8.0" targetFramework="net45" />
<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.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.Mvc" version="1.4.460.0" targetFramework="net45" />
<package id="Telerik.UI.for.AspNet.Mvc5.Trial" version="2015.3.930" targetFramework="net45" />
<package id="WebActivatorEx" version="2.0.3" targetFramework="net45" />
</packages>
6 changes: 6 additions & 0 deletions ListWidget/ListWidget.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 176974f

Please sign in to comment.