Skip to content

Instantly share code, notes, and snippets.

@hombreDelPez
Last active June 8, 2017 12:45
Show Gist options
  • Save hombreDelPez/e5ad065572fdab7145dd72847d8aabd2 to your computer and use it in GitHub Desktop.
Save hombreDelPez/e5ad065572fdab7145dd72847d8aabd2 to your computer and use it in GitHub Desktop.
NitroNet.Sitecore installation - Global.asax.cs
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
using NitroNet.Sitecore;;
namespace NitroNetMVC
{
public class MvcApplication : System.Web.HttpApplication
{
protected void Application_Start()
{
AreaRegistration.RegisterAllAreas();
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
RouteConfig.RegisterRoutes(RouteTable.Routes);
BundleConfig.RegisterBundles(BundleTable.Bundles);
ViewEngines.Engines.Add(DependencyResolver.Current.GetService<SitecoreNitroNetViewEngine>());
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment