Skip to content

Commit 0c01739

Browse files
committed
.NET 10 Update
1 parent 34d559c commit 0c01739

8 files changed

Lines changed: 21 additions & 21 deletions

File tree

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
1+
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
22
WORKDIR /app
33

44
COPY src/Bot ./
55
RUN dotnet restore
66

77
RUN dotnet publish -c Release -o out
88

9-
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS runtime
9+
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS runtime
1010
WORKDIR /app
1111
COPY --from=build /app/out ./
1212

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "9.0.300",
3+
"version": "10.0.200",
44
"rollForward": "latestMajor",
55
"allowPrerelease": false
66
}

src/Bot/Entities/CalledCommandsInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public static void Load()
5959
{
6060
if (!CalledCommandsFile.ExistsAsFile)
6161
{
62-
CalledCommandsFile.Create();
62+
CalledCommandsFile.CreateAsFile();
6363
Save();
6464
}
6565
else

src/Bot/Helpers/Logger.Internal.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ public void Log(SentryLevel logLevel, string message, Exception exception = null
2525
private static readonly string[] VolteAscii =
2626
Figlet.GetAscii("Volte").ConcreteValue.Split("\n", StringSplitOptions.RemoveEmptyEntries);
2727

28-
static Logger() => FilePath.Logs.Create();
29-
28+
static Logger() => FilePath.Logs.CreateAsDirectory();
29+
3030
private static readonly Lock LogSync = new();
31-
31+
3232
internal static void PrintHeader()
3333
{
3434
if (!VolteBot.IsHeadless) return;
35-
35+
3636
Info(LogSource.Volte, CommandEventArgs.Separator.Trim());
3737
VolteAscii.ForEach(static ln => Info(LogSource.Volte, ln));
3838
Info(LogSource.Volte, CommandEventArgs.Separator.Trim());

src/Bot/Systems/Configuration/Config.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ private static bool IsValidConfig()
3434
{
3535
Error(LogSource.Volte,
3636
$"The \"{FilePath.Data}\" directory didn't exist, so I created it for you. Please fill in the configuration!");
37-
FilePath.Data.Create();
37+
FilePath.Data.CreateAsDirectory();
3838
//99.9999999999% of the time the config also won't exist if this block is reached
3939
//if the config does exist when this block is reached, feel free to become the lead developer of this project
4040
}

src/Bot/Volte.csproj

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<OutputType>Exe</OutputType>
4-
<TargetFramework>net9.0</TargetFramework>
5-
<LangVersion>latest</LangVersion>
4+
<TargetFramework>net10.0</TargetFramework>
5+
<LangVersion>preview</LangVersion>
66
<RuntimeIdentifiers>linux-x64;win-x64;linux-arm64</RuntimeIdentifiers>
77
<Authors>GreemDev</Authors>
88
<Company>Polyhaze</Company>
@@ -25,18 +25,18 @@
2525
<EmbeddedResource Include="Resources/Mono/JetBrainsMonoNL-Italic.ttf" LogicalName="Italic" />
2626
</ItemGroup>
2727
<ItemGroup>
28-
<PackageReference Include="Discord.Net.Interactions" Version="3.18.0" />
29-
<PackageReference Include="Discord.Net.WebSocket" Version="3.18.0" />
30-
<PackageReference Include="Gommon" Version="2.8.0" />
28+
<PackageReference Include="Discord.Net.Interactions" Version="3.19.1" />
29+
<PackageReference Include="Discord.Net.WebSocket" Version="3.19.1" />
30+
<PackageReference Include="Gommon" Version="2.8.1.1" />
3131
<PackageReference Include="GreemDev.Colorful.Console" Version="1.3.2" />
3232
<PackageReference Include="Humanizer.Core" Version="2.14.1" />
3333
<PackageReference Include="LiteDB" Version="5.0.21" />
34-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Scripting" Version="4.14.0" />
35-
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.9" />
34+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Scripting" Version="5.3.0" />
35+
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="10.0.5" />
3636
<PackageReference Include="Qmmands" Version="5.0.2" />
3737
<PackageReference Include="Sentry" Version="5.14.1" />
38-
<PackageReference Include="SixLabors.ImageSharp" Version="3.1.11" />
39-
<PackageReference Include="Starscript.Net" Version="1.0.54" />
38+
<PackageReference Include="SixLabors.ImageSharp" Version="3.1.12" />
39+
<PackageReference Include="Starscript.Net" Version="1.0.58" />
4040
</ItemGroup>
4141
<ItemGroup>
4242
<Folder Include="Resources\" />

src/UI/Avalonia/ViewModels/GuildsViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public GuildsViewModel()
4343
VolteBot.Client.GuildAvailable += HandleGuildUpdate;
4444
VolteBot.Client.GuildUnavailable += HandleGuildUpdate;
4545
}
46-
46+
4747
~GuildsViewModel()
4848
{
4949
VolteBot.Client.JoinedGuild -= HandleGuildUpdate;

src/UI/Volte.UI.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<PropertyGroup>
33
<OutputType>WinExe</OutputType>
44
<!-- WinExe does NOT mean Windows Exe, it's just the legacy name for a standard app without a console. -->
5-
<TargetFramework>net9.0</TargetFramework>
6-
<LangVersion>latest</LangVersion>
5+
<TargetFramework>net10.0</TargetFramework>
6+
<LangVersion>preview</LangVersion>
77
<Nullable>enable</Nullable>
88
<ApplicationIcon>../Bot/Resources/Volte.ico</ApplicationIcon>
99
<ImplicitUsings>enable</ImplicitUsings>

0 commit comments

Comments
 (0)