From 41ae990081b1cfebfdfc98b8411f2aa219f94411 Mon Sep 17 00:00:00 2001 From: Bryan Date: Sat, 7 Sep 2024 02:24:51 +0200 Subject: [PATCH] bump: update .NET, C# and packages versions - Updated .NET SDK from 7.0 to 8.0. - Updated C# language version from 9.0 to 11.0. - Updated Discord.Net from 3.10.0 to 3.15.3. - Updated Microsoft.Extensions.DependencyInjection from 6.0.0 to 8.0.0. - Updated LiteDB from 5.0.13 to 5.0.21. - Updated Microsoft.Bcl.AsyncInterfaces from 6.0.0 to 8.0.0. --- .vscode/launch.json | 52 +++++++++---------- README.md | 4 +- .../AdvancedBot.Console.csproj | 4 +- src/AdvancedBot.Core/AdvancedBot.Core.csproj | 14 ++--- .../AdvancedBot.Dashboard.csproj | 2 +- tools/update.bat | 2 +- 6 files changed, 40 insertions(+), 38 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 3984b0c..96253eb 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,27 +1,27 @@ { - // Use IntelliSense to find out which attributes exist for C# debugging - // Use hover for the description of the existing attributes - // For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md - "version": "0.2.0", - "configurations": [ - { - "name": ".NET Core Launch (console)", - "type": "coreclr", - "request": "launch", - "preLaunchTask": "build", - // If you have changed target frameworks, make sure to update the program path. - "program": "${workspaceFolder}/src/AdvancedBot.Console/bin/Debug/net7.0/AdvancedBot.Console.dll", - "args": [], - "cwd": "${workspaceFolder}/src/AdvancedBot.Console", - // For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console - "console": "internalConsole", - "stopAtEntry": false - }, - { - "name": ".NET Core Attach", - "type": "coreclr", - "request": "attach", - "processId": "${command:pickProcess}" - } - ] -} \ No newline at end of file + // Use IntelliSense to find out which attributes exist for C# debugging + // Use hover for the description of the existing attributes + // For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md + "version": "0.2.0", + "configurations": [ + { + "name": ".NET Core Launch (console)", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "build", + // If you have changed target frameworks, make sure to update the program path. + "program": "${workspaceFolder}/src/AdvancedBot.Console/bin/Debug/net8.0/AdvancedBot.Console.dll", + "args": [], + "cwd": "${workspaceFolder}/src/AdvancedBot.Console", + // For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console + "console": "internalConsole", + "stopAtEntry": false + }, + { + "name": ".NET Core Attach", + "type": "coreclr", + "request": "attach", + "processId": "${command:pickProcess}" + } + ] +} diff --git a/README.md b/README.md index 13caad5..ff785a6 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ It uses our official .NET API Wrapper, available on [NuGet](https://www.nuget.or ## Prerequisites -- [.NET 7.0](https://dotnet.microsoft.com/en-us/download/dotnet/7.0) +- [.NET 8.0](https://dotnet.microsoft.com/en-us/download/dotnet/8.0) - [Visual Studio](https://visualstudio.microsoft.com/) (or [Visual Studio Code](https://code.visualstudio.com)). ## Running Locally @@ -20,9 +20,11 @@ Then, set up an environement variable named `Token`, and assign it your discord First set `AdvancedBot.Console` as your startup project.
Right-click the solution and select `Set as your Startup Project`, or use `CTRL + ALT + P` to open the project properties and then set your startup project here. + - Press `F5` to run the application in debug mode. #### Visual Studio Code The `.vscode/` folder contains all necessary configuration files for you to run the application easily. + - Press `F5` to start the application in debug mode. diff --git a/src/AdvancedBot.Console/AdvancedBot.Console.csproj b/src/AdvancedBot.Console/AdvancedBot.Console.csproj index 5d322b8..0565f80 100644 --- a/src/AdvancedBot.Console/AdvancedBot.Console.csproj +++ b/src/AdvancedBot.Console/AdvancedBot.Console.csproj @@ -1,9 +1,9 @@ Exe - net7.0 + net8.0 - \ No newline at end of file + diff --git a/src/AdvancedBot.Core/AdvancedBot.Core.csproj b/src/AdvancedBot.Core/AdvancedBot.Core.csproj index 064358d..856ce44 100644 --- a/src/AdvancedBot.Core/AdvancedBot.Core.csproj +++ b/src/AdvancedBot.Core/AdvancedBot.Core.csproj @@ -1,14 +1,14 @@ - 9.0 - net7.0 + 11.0 + net8.0 - + - - + + - + - \ No newline at end of file + diff --git a/src/AdvancedBot.Dashboard/AdvancedBot.Dashboard.csproj b/src/AdvancedBot.Dashboard/AdvancedBot.Dashboard.csproj index 2a0ecd2..f577589 100644 --- a/src/AdvancedBot.Dashboard/AdvancedBot.Dashboard.csproj +++ b/src/AdvancedBot.Dashboard/AdvancedBot.Dashboard.csproj @@ -1,5 +1,5 @@ - net7.0 + net8.0 diff --git a/tools/update.bat b/tools/update.bat index 4542a09..113d825 100644 --- a/tools/update.bat +++ b/tools/update.bat @@ -1,4 +1,4 @@ cd .. git pull dotnet build src/AdvancedBot.Console/AdvancedBot.Console.csproj -c Release -start "Discord Bot" src/AdvancedBot.Console/bin/Release/net7.0/AdvancedBot.Console.exe \ No newline at end of file +start "Discord Bot" src/AdvancedBot.Console/bin/Release/net8.0/AdvancedBot.Console.exe