requirejs.config({ paths: { 'text': '../Scripts/text', 'durandal': '../Scripts/durandal', 'plugins': '../Scripts/durandal/plugins', 'transitions': '../Scripts/durandal/transitions' } }); define('jquery', function() { return jQuery; }); define('knockout', ko); define(['durandal/system', 'durandal/app', 'durandal/viewLocator', 'durandal/viewEngine'], function (system, app, viewLocator,viewEngine) { //>>excludeStart("build", true); system.debug(true); //>>excludeEnd("build"); app.title = 'Durandal Starter Kit'; app.configurePlugins({ router: true, dialog: true, widget: true }); app.start().then(function() { //Replace 'viewmodels' in the moduleId with 'views' to locate the view. //Look for partial views in a 'views' folder in the root. viewLocator.useConvention(); //by default durandal expects html files, override this //Use the MVC route viewEngine.viewExtension = ".cshtml"; //Show the app by setting the root view model for our application with a transition. app.setRoot('features/shell', 'entrance'); }); });