From e5a1a5eb7bdae273c309a246918475d961ba6e06 Mon Sep 17 00:00:00 2001 From: Takashi Shinohara Date: Sat, 17 Aug 2024 16:48:20 +0900 Subject: [PATCH] 2.1.1 release --- .github/workflows/workflow.yml | 2 +- source/.vscode/launch.json | 13 +++---------- source/.vscode/tasks.json | 2 ++ .../Karamem0.BookingsBot.csproj | 4 ++-- source/Karamem0.BookingsBot/Program.cs | 7 +++++-- 5 files changed, 13 insertions(+), 15 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 4f5f9d8..5476006 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -5,7 +5,7 @@ on: - develop env: - BUILD_VERSION: '2.1.0' + BUILD_VERSION: '2.1.1' jobs: select-environment: diff --git a/source/.vscode/launch.json b/source/.vscode/launch.json index 5f6d332..0307697 100644 --- a/source/.vscode/launch.json +++ b/source/.vscode/launch.json @@ -2,17 +2,10 @@ "version": "0.2.0", "configurations": [ { - "name": "Launch Bot", - "type": "coreclr", + "name": "Debug Bot", + "type": "dotnet", "request": "launch", - "preLaunchTask": "build", - "program": "${workspaceFolder}/Karamem0.BookingsBot/bin/Debug/net8.0/Karamem0.BookingsBot.dll", - "args": [], - "cwd": "${workspaceFolder}/Karamem0.BookingsBot", - "stopAtEntry": false, - "env": { - "ASPNETCORE_ENVIRONMENT": "Development" - } + "projectPath": "${workspaceFolder}/Karamem0.BookingsBot/Karamem0.BookingsBot.csproj" } ] } diff --git a/source/.vscode/tasks.json b/source/.vscode/tasks.json index 0f3ddd5..dba6ccb 100644 --- a/source/.vscode/tasks.json +++ b/source/.vscode/tasks.json @@ -7,6 +7,7 @@ "command": "dotnet", "args": [ "clean", + "${workspaceFolder}/Karamem0.BookingsBot.sln", "/property:GenerateFullPaths=true", "/consoleloggerparameters:NoSummary" ], @@ -22,6 +23,7 @@ "command": "dotnet", "args": [ "build", + "${workspaceFolder}/Karamem0.BookingsBot.sln", "/property:GenerateFullPaths=true", "/consoleloggerparameters:NoSummary" ], diff --git a/source/Karamem0.BookingsBot/Karamem0.BookingsBot.csproj b/source/Karamem0.BookingsBot/Karamem0.BookingsBot.csproj index 2109639..87506d5 100644 --- a/source/Karamem0.BookingsBot/Karamem0.BookingsBot.csproj +++ b/source/Karamem0.BookingsBot/Karamem0.BookingsBot.csproj @@ -24,11 +24,11 @@ - + - + diff --git a/source/Karamem0.BookingsBot/Program.cs b/source/Karamem0.BookingsBot/Program.cs index c208e87..b7b3f80 100644 --- a/source/Karamem0.BookingsBot/Program.cs +++ b/source/Karamem0.BookingsBot/Program.cs @@ -38,10 +38,13 @@ { _ = app.UseDeveloperExceptionPage(); } +else +{ + _ = app.UseWebSockets(); + _ = app.UseNamedPipes($"{Environment.GetEnvironmentVariable("APPSETTING_WEBSITE_SITE_NAME")}.directline"); +} _ = app.UseDefaultFiles(); _ = app.UseStaticFiles(); -_ = app.UseWebSockets(); -_ = app.UseNamedPipes($"{Environment.GetEnvironmentVariable("APPSETTING_WEBSITE_SITE_NAME")}.directline"); _ = app.UseRouting(); _ = app.UseAuthorization(); _ = app.MapControllers();