From b906de2c5fc04bcf30bb0c850c31e738aba09ea5 Mon Sep 17 00:00:00 2001 From: Ryan Brandenburg Date: Thu, 17 Jan 2019 14:27:46 -0800 Subject: [PATCH] Remove web --- src/Templating/scripts/web/Program.cs | 28 -------------- src/Templating/scripts/web/Startup.cs | 37 ------------------- .../scripts/web/appsettings.Development.json | 9 ----- src/Templating/scripts/web/appsettings.json | 8 ---- src/Templating/scripts/web/web.csproj | 16 -------- 5 files changed, 98 deletions(-) delete mode 100644 src/Templating/scripts/web/Program.cs delete mode 100644 src/Templating/scripts/web/Startup.cs delete mode 100644 src/Templating/scripts/web/appsettings.Development.json delete mode 100644 src/Templating/scripts/web/appsettings.json delete mode 100644 src/Templating/scripts/web/web.csproj diff --git a/src/Templating/scripts/web/Program.cs b/src/Templating/scripts/web/Program.cs deleted file mode 100644 index 323ed3d6ac..0000000000 --- a/src/Templating/scripts/web/Program.cs +++ /dev/null @@ -1,28 +0,0 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using Microsoft.AspNetCore; -using Microsoft.AspNetCore.Hosting; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.Hosting; -using Microsoft.Extensions.Logging; - -namespace web -{ - public class Program - { - public static void Main(string[] args) - { - CreateHostBuilder(args).Build().Run(); - } - - public static IHostBuilder CreateHostBuilder(string[] args) => - Host.CreateDefaultBuilder(args) - .ConfigureWebHostDefaults(webBuilder => - { - webBuilder.UseStartup(); - }); - } -} diff --git a/src/Templating/scripts/web/Startup.cs b/src/Templating/scripts/web/Startup.cs deleted file mode 100644 index 0076dbb0a9..0000000000 --- a/src/Templating/scripts/web/Startup.cs +++ /dev/null @@ -1,37 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Builder; -using Microsoft.AspNetCore.Hosting; -using Microsoft.AspNetCore.Http; -using Microsoft.Extensions.DependencyInjection; - -namespace web -{ - public class Startup - { - // This method gets called by the runtime. Use this method to add services to the container. - // For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940 - public void ConfigureServices(IServiceCollection services) - { - } - - // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. - public void Configure(IApplicationBuilder app, IHostingEnvironment env) - { - if (env.IsDevelopment()) - { - app.UseDeveloperExceptionPage(); - } - - app.UseRouting(routes => - { - routes.MapGet("/", async context => - { - await context.Response.WriteAsync("Hello World!"); - }); - }); - } - } -} diff --git a/src/Templating/scripts/web/appsettings.Development.json b/src/Templating/scripts/web/appsettings.Development.json deleted file mode 100644 index e203e9407e..0000000000 --- a/src/Templating/scripts/web/appsettings.Development.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "Logging": { - "LogLevel": { - "Default": "Debug", - "System": "Information", - "Microsoft": "Information" - } - } -} diff --git a/src/Templating/scripts/web/appsettings.json b/src/Templating/scripts/web/appsettings.json deleted file mode 100644 index def9159a7d..0000000000 --- a/src/Templating/scripts/web/appsettings.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "Logging": { - "LogLevel": { - "Default": "Warning" - } - }, - "AllowedHosts": "*" -} diff --git a/src/Templating/scripts/web/web.csproj b/src/Templating/scripts/web/web.csproj deleted file mode 100644 index 36ae57f998..0000000000 --- a/src/Templating/scripts/web/web.csproj +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - netcoreapp3.0 - - - - - - - -