From a057c0024161437d01eeb73f435de6dd6fe746e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=98=89=E7=A5=A5=20=E8=A9=B9?= Date: Fri, 8 Aug 2025 11:17:57 +0800 Subject: [PATCH] first --- Program.cs | 6 ++++++ Properties/launchSettings.json | 38 ++++++++++++++++++++++++++++++++++ ad_login.csproj | 9 ++++++++ ad_login.sln | 25 ++++++++++++++++++++++ appsettings.Development.json | 8 +++++++ appsettings.json | 9 ++++++++ 6 files changed, 95 insertions(+) create mode 100644 Program.cs create mode 100644 Properties/launchSettings.json create mode 100644 ad_login.csproj create mode 100644 ad_login.sln create mode 100644 appsettings.Development.json create mode 100644 appsettings.json diff --git a/Program.cs b/Program.cs new file mode 100644 index 0000000..1760df1 --- /dev/null +++ b/Program.cs @@ -0,0 +1,6 @@ +var builder = WebApplication.CreateBuilder(args); +var app = builder.Build(); + +app.MapGet("/", () => "Hello World!"); + +app.Run(); diff --git a/Properties/launchSettings.json b/Properties/launchSettings.json new file mode 100644 index 0000000..74554ba --- /dev/null +++ b/Properties/launchSettings.json @@ -0,0 +1,38 @@ +{ + "$schema": "http://json.schemastore.org/launchsettings.json", + "iisSettings": { + "windowsAuthentication": false, + "anonymousAuthentication": true, + "iisExpress": { + "applicationUrl": "http://localhost:51410", + "sslPort": 44393 + } + }, + "profiles": { + "http": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": true, + "applicationUrl": "http://localhost:5255", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "https": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": true, + "applicationUrl": "https://localhost:7043;http://localhost:5255", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "IIS Express": { + "commandName": "IISExpress", + "launchBrowser": true, + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + } + } +} diff --git a/ad_login.csproj b/ad_login.csproj new file mode 100644 index 0000000..1b28a01 --- /dev/null +++ b/ad_login.csproj @@ -0,0 +1,9 @@ + + + + net8.0 + enable + enable + + + diff --git a/ad_login.sln b/ad_login.sln new file mode 100644 index 0000000..c4e8d1a --- /dev/null +++ b/ad_login.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.14.36401.2 d17.14 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ad_login", "ad_login.csproj", "{760BC699-8539-4B1C-85AB-29483A30CF76}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {760BC699-8539-4B1C-85AB-29483A30CF76}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {760BC699-8539-4B1C-85AB-29483A30CF76}.Debug|Any CPU.Build.0 = Debug|Any CPU + {760BC699-8539-4B1C-85AB-29483A30CF76}.Release|Any CPU.ActiveCfg = Release|Any CPU + {760BC699-8539-4B1C-85AB-29483A30CF76}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {39D34C00-3E52-47AD-94A0-148C7E128949} + EndGlobalSection +EndGlobal diff --git a/appsettings.Development.json b/appsettings.Development.json new file mode 100644 index 0000000..0c208ae --- /dev/null +++ b/appsettings.Development.json @@ -0,0 +1,8 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + } +} diff --git a/appsettings.json b/appsettings.json new file mode 100644 index 0000000..10f68b8 --- /dev/null +++ b/appsettings.json @@ -0,0 +1,9 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + }, + "AllowedHosts": "*" +}