diff --git a/src/dotnetstarter/Controllers/HomeController.cs b/src/dotnetstarter/Controllers/HomeController.cs deleted file mode 100644 index b1abe07..0000000 --- a/src/dotnetstarter/Controllers/HomeController.cs +++ /dev/null @@ -1,13 +0,0 @@ -using Microsoft.AspNet.Mvc; - -namespace dotnethelloworld.Controllers -{ - public class HomeController : Controller - { - // GET: // - public IActionResult Index() - { - return View(); - } - } -} diff --git a/src/dotnetstarter/Startup.cs b/src/dotnetstarter/Startup.cs index d7fd852..5aaac4f 100644 --- a/src/dotnetstarter/Startup.cs +++ b/src/dotnetstarter/Startup.cs @@ -1,35 +1,11 @@ using Microsoft.AspNet.Builder; -using Microsoft.AspNet.Hosting; -using Microsoft.Framework.DependencyInjection; -using Microsoft.Framework.Logging; -using Microsoft.Framework.Configuration; -using Microsoft.Framework.Runtime; +using Microsoft.AspNet.StaticFiles; public class Startup { - public IConfiguration Configuration { get; set; } - - public Startup(IHostingEnvironment env, IApplicationEnvironment appEnv) - { - var configBuilder = new ConfigurationBuilder(appEnv.ApplicationBasePath) - .AddJsonFile("config.json") - .AddEnvironmentVariables(); - Configuration = configBuilder.Build(); - } - - public void ConfigureServices(IServiceCollection services) - { - services.AddMvc(); - } - - public void Configure(IApplicationBuilder app, ILoggerFactory loggerFactory) + public void Configure(IApplicationBuilder app) { - loggerFactory.AddConsole(); - - app.UseErrorPage(); - + app.UseDefaultFiles(); app.UseStaticFiles(); - - app.UseMvcWithDefaultRoute(); } } diff --git a/src/dotnetstarter/project.json b/src/dotnetstarter/project.json index b7d6867..a15dd77 100644 --- a/src/dotnetstarter/project.json +++ b/src/dotnetstarter/project.json @@ -3,18 +3,11 @@ "dependencies": { "Kestrel": "1.0.0-beta6", - "Microsoft.AspNet.Diagnostics": "1.0.0-beta6", - "Microsoft.AspNet.Mvc": "6.0.0-beta6", - "Microsoft.AspNet.Server.WebListener": "1.0.0-beta6", - "Microsoft.AspNet.StaticFiles": "1.0.0-beta6", - "Microsoft.Framework.Configuration.EnvironmentVariables": "1.0.0-beta6", - "Microsoft.Framework.Configuration.Json": "1.0.0-beta6", - "Microsoft.Framework.Logging.Console": "1.0.0-beta6" + "Microsoft.AspNet.StaticFiles": "1.0.0-beta6" }, "commands": { - "kestrel": "Microsoft.AspNet.Hosting --server Kestrel --server.urls http://localhost:5004", - "web": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.WebListener --server.urls http://localhost:5001" + "kestrel": "Microsoft.AspNet.Hosting --server Kestrel --server.urls http://localhost:5004" }, "frameworks": { diff --git a/src/dotnetstarter/Views/Home/Index.cshtml b/src/dotnetstarter/wwwroot/index.html similarity index 100% rename from src/dotnetstarter/Views/Home/Index.cshtml rename to src/dotnetstarter/wwwroot/index.html