From 93b6c449d4f31ddd7d573d1d3769e681d5ebceb9 Mon Sep 17 00:00:00 2001 From: Egor Bogatov Date: Tue, 2 Jun 2020 13:20:25 +0300 Subject: [PATCH] Remove sample/AspNetCore (#37249) --- .../netcore/sample/AspNetCore/AspNetCore.csproj | 7 ---- src/mono/netcore/sample/AspNetCore/Program.cs | 26 -------------- .../AspNetCore/Properties/launchSettings.json | 27 -------------- src/mono/netcore/sample/AspNetCore/Startup.cs | 41 ---------------------- .../sample/AspNetCore/appsettings.Development.json | 9 ----- .../netcore/sample/AspNetCore/appsettings.json | 10 ------ 6 files changed, 120 deletions(-) delete mode 100644 src/mono/netcore/sample/AspNetCore/AspNetCore.csproj delete mode 100644 src/mono/netcore/sample/AspNetCore/Program.cs delete mode 100644 src/mono/netcore/sample/AspNetCore/Properties/launchSettings.json delete mode 100644 src/mono/netcore/sample/AspNetCore/Startup.cs delete mode 100644 src/mono/netcore/sample/AspNetCore/appsettings.Development.json delete mode 100644 src/mono/netcore/sample/AspNetCore/appsettings.json diff --git a/src/mono/netcore/sample/AspNetCore/AspNetCore.csproj b/src/mono/netcore/sample/AspNetCore/AspNetCore.csproj deleted file mode 100644 index bb9ffce..0000000 --- a/src/mono/netcore/sample/AspNetCore/AspNetCore.csproj +++ /dev/null @@ -1,7 +0,0 @@ - - - - netcoreapp3.0 - - - diff --git a/src/mono/netcore/sample/AspNetCore/Program.cs b/src/mono/netcore/sample/AspNetCore/Program.cs deleted file mode 100644 index e5a1c70..0000000 --- a/src/mono/netcore/sample/AspNetCore/Program.cs +++ /dev/null @@ -1,26 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Hosting; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.Hosting; -using Microsoft.Extensions.Logging; - -namespace AspNetCore -{ - 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/mono/netcore/sample/AspNetCore/Properties/launchSettings.json b/src/mono/netcore/sample/AspNetCore/Properties/launchSettings.json deleted file mode 100644 index f3af41c..0000000 --- a/src/mono/netcore/sample/AspNetCore/Properties/launchSettings.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "iisSettings": { - "windowsAuthentication": false, - "anonymousAuthentication": true, - "iisExpress": { - "applicationUrl": "http://localhost:35206", - "sslPort": 44375 - } - }, - "profiles": { - "IIS Express": { - "commandName": "IISExpress", - "launchBrowser": true, - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } - }, - "AspNetCore": { - "commandName": "Project", - "launchBrowser": true, - "applicationUrl": "https://localhost:5001;http://localhost:5000", - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } - } - } -} \ No newline at end of file diff --git a/src/mono/netcore/sample/AspNetCore/Startup.cs b/src/mono/netcore/sample/AspNetCore/Startup.cs deleted file mode 100644 index 5aacdd6..0000000 --- a/src/mono/netcore/sample/AspNetCore/Startup.cs +++ /dev/null @@ -1,41 +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; -using Microsoft.Extensions.Hosting; - -namespace AspNetCore -{ - 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, IWebHostEnvironment env) - { - if (env.IsDevelopment()) - { - app.UseDeveloperExceptionPage(); - } - - app.UseRouting(); - - app.UseEndpoints(endpoints => - { - endpoints.MapGet("/", async context => - { - bool isMono = typeof(object).Assembly.GetType("Mono.RuntimeStructs") != null; - await context.Response.WriteAsync("Hello World " + (isMono ? "from mono!\n" : "from CoreCLR")); - }); - }); - } - } -} diff --git a/src/mono/netcore/sample/AspNetCore/appsettings.Development.json b/src/mono/netcore/sample/AspNetCore/appsettings.Development.json deleted file mode 100644 index e203e94..0000000 --- a/src/mono/netcore/sample/AspNetCore/appsettings.Development.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "Logging": { - "LogLevel": { - "Default": "Debug", - "System": "Information", - "Microsoft": "Information" - } - } -} diff --git a/src/mono/netcore/sample/AspNetCore/appsettings.json b/src/mono/netcore/sample/AspNetCore/appsettings.json deleted file mode 100644 index d9d9a9b..0000000 --- a/src/mono/netcore/sample/AspNetCore/appsettings.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "Logging": { - "LogLevel": { - "Default": "Information", - "Microsoft": "Warning", - "Microsoft.Hosting.Lifetime": "Information" - } - }, - "AllowedHosts": "*" -} -- 2.7.4