Skip to content

Commit

Permalink
bump: update .NET, C# and packages versions
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
bryanpth committed Sep 7, 2024
1 parent 3646cf2 commit 41ae990
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 38 deletions.
52 changes: 26 additions & 26 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -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}"
}
]
}
// 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}"
}
]
}
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.<br/>
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.
4 changes: 2 additions & 2 deletions src/AdvancedBot.Console/AdvancedBot.Console.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\AdvancedBot.Core\AdvancedBot.Core.csproj" />
</ItemGroup>
</Project>
</Project>
14 changes: 7 additions & 7 deletions src/AdvancedBot.Core/AdvancedBot.Core.csproj
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<LangVersion>9.0</LangVersion>
<TargetFramework>net7.0</TargetFramework>
<LangVersion>11.0</LangVersion>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Discord.Net" Version="3.10.0" />
<PackageReference Include="Discord.Net" Version="3.15.3" />
<PackageReference Include="GL.Net" Version="0.4.13" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.0" />
<PackageReference Include="LiteDB" Version="5.0.13" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0" />
<PackageReference Include="LiteDB" Version="5.0.21" />
<PackageReference Include="Humanizer" Version="2.14.1" />
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="6.0.0" />
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="8.0.0" />
</ItemGroup>
</Project>
</Project>
2 changes: 1 addition & 1 deletion src/AdvancedBot.Dashboard/AdvancedBot.Dashboard.csproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>
</Project>
2 changes: 1 addition & 1 deletion tools/update.bat
Original file line number Diff line number Diff line change
@@ -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
start "Discord Bot" src/AdvancedBot.Console/bin/Release/net8.0/AdvancedBot.Console.exe

0 comments on commit 41ae990

Please sign in to comment.