Set up the server

Set up the server

In project.json add another entry in "dependencies":

1
"Microsoft.AspNet.StaticFiles": "1.0.0-rc1-final"

The resulting dependencies should look like this:

1
2
3
4
5
"dependencies": {
"Microsoft.AspNet.IISPlatformHandler": "1.0.0-rc1-final",
"Microsoft.AspNet.Server.Kestrel": "1.0.0-rc1-final",
"Microsoft.AspNet.StaticFiles": "1.0.0-rc1-final"
},

Replace the body of Configure in Startup.cs with

1
2
3
4
5
6
public void Configure(IApplicationBuilder app)
{
  app.UseIISPlatformHandler();
  app.UseDefaultFiles();
  app.UseStaticFiles();
}
doc_TypeScript
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.