Skip to content

Commit 3522545

Browse files
2 parents d54a51f + eb9c0f6 commit 3522545

File tree

1 file changed

+12
-10
lines changed
  • skeleton-esnext-aspnetcore/src/skeleton-navigation-esnext-vs

1 file changed

+12
-10
lines changed

skeleton-esnext-aspnetcore/src/skeleton-navigation-esnext-vs/Startup.cs

+12-10
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ public void ConfigureServices(IServiceCollection services)
3838
// Add framework services.
3939

4040
services.AddApplicationInsightsTelemetry(Configuration);
41-
42-
services.AddMvc();
41+
// To enable Mvc, uncomment this line as well as the Mvc configuration in Configure below.
42+
//services.AddMvc();
4343

4444
// Add application services.
4545
}
@@ -59,17 +59,19 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF
5959
{
6060
app.UseExceptionHandler("/Home/Error");
6161
}
62-
62+
// Comment this line to NOT use index.html as the startup file. For example, when using Mvc.
63+
app.UseDefaultFiles();
64+
6365
app.UseStaticFiles();
6466

6567
// Add external authentication middleware below. To configure them please see http://go.microsoft.com/fwlink/?LinkID=532715
66-
67-
app.UseMvc(routes =>
68-
{
69-
routes.MapRoute(
70-
name: "default",
71-
template: "{controller=Home}/{action=Index}/{id?}");
72-
});
68+
// Uncomment this line to use Mvc as the startup route.
69+
//app.UseMvc(routes =>
70+
//{
71+
//routes.MapRoute(
72+
//name: "default",
73+
//template: "{controller=Home}/{action=Index}/{id?}");
74+
//});
7375
}
7476
}
7577
}

0 commit comments

Comments
 (0)