Skip to content

Commit

Permalink
Update to .NET 9
Browse files Browse the repository at this point in the history
  • Loading branch information
OoLunar committed Jan 23, 2025
1 parent 16c5408 commit 38c40a6
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8
dotnet-version: 9
- name: Build Project
run: dotnet build
- name: Build Dockerfile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8
dotnet-version: 9
- name: Build Project
run: dotnet build
- name: Build Dockerfile
Expand Down
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceFolder}/src/bin/Debug/net8.0/Tomoe.dll",
"program": "${workspaceFolder}/src/bin/Debug/net9.0/Tomoe.dll",
"args": [],
"cwd": "${workspaceFolder}",
"console": "internalConsole",
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build
FROM mcr.microsoft.com/dotnet/sdk:9.0-alpine AS build
ARG VERSION=6.0.0
WORKDIR /src

Expand Down
2 changes: 1 addition & 1 deletion src/Commands/Owner/BenchmarkCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public static async ValueTask ExecuteAsync(CommandContext context, [FromCode] st
string statusPath = Path.Combine(basePath, "status.log");
if (!File.Exists(statusPath))
{
await File.WriteAllTextAsync(statusPath, null);
await File.WriteAllTextAsync(statusPath, "");
}

await context.RespondAsync("Running benchmarks...");
Expand Down
2 changes: 1 addition & 1 deletion src/Tomoe.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<ProjectRoot>$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), "Tomoe.sln"))</ProjectRoot>
<RepositoryUrl>https://github.com/OoLunar/Tomoe</RepositoryUrl>
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<Version>6.0.0</Version>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>
Expand Down

0 comments on commit 38c40a6

Please sign in to comment.