Skip to content

Commit

Permalink
Merge pull request #254 from LumpBloom7/Bump-osu-and-NET8
Browse files Browse the repository at this point in the history
Update .NET and osu
  • Loading branch information
LumpBloom7 authored Feb 19, 2024
2 parents 44aeb05 + d119915 commit 01a6cd8
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 48 deletions.
16 changes: 2 additions & 14 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,16 @@
"request": "launch",
"program": "dotnet",
"args": [
"${workspaceRoot}/osu.Game.Rulesets.Hishigata.Tests/bin/Debug/net6.0/osu.Game.Rulesets.Hishigata.Tests.dll"
"${workspaceRoot}/osu.Game.Rulesets.Hishigata.Tests/bin/Debug/net8.0/osu.Game.Rulesets.Hishigata.Tests.dll"
],
"cwd": "${workspaceRoot}",
"preLaunchTask": "Build tests (Debug)",
"preLaunchTask": "Build tests",
"console": "internalConsole",
"justMyCode": false,
"symbolOptions": {
"searchMicrosoftSymbolServer": true,
"searchNuGetOrgSymbolServer": true
},
},
{
"name": "hishigata for osu! (Tests, Release)",
"type": "coreclr",
"request": "launch",
"program": "dotnet",
"args": [
"${workspaceRoot}/osu.Game.Rulesets.Hishigata.Tests/bin/Release/net6.0/osu.Game.Rulesets.Hishigata.Tests.dll"
],
"cwd": "${workspaceRoot}",
"preLaunchTask": "Build tests (Release)",
"console": "internalConsole"
},
]
}
31 changes: 2 additions & 29 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"version": "2.0.0",
"tasks": [
{
"label": "Build tests (Debug)",
"label": "Build tests",
"type": "shell",
"command": "dotnet",
"args": [
Expand All @@ -16,25 +16,9 @@
"group": "build",
"problemMatcher": "$msCompile"
},
{
"label": "Build tests (Release)",
"type": "shell",
"command": "dotnet",
"args": [
"build",
"--no-restore",
"osu.Game.Rulesets.Hishigata.Tests",
"/p:Configuration=Release",
"/p:GenerateFullPaths=true",
"/m",
"/verbosity:m"
],
"group": "build",
"problemMatcher": "$msCompile"
},
// Test Tasks
{
"label": "Run tests (Debug)",
"label": "Run tests",
"type": "shell",
"command": "dotnet",
"args": [
Expand All @@ -44,16 +28,5 @@
"group": "test",
"problemMatcher": "$msCompile"
},
{
"label": "Run tests (Release)",
"type": "shell",
"command": "dotnet",
"args": [
"test",
"/p:Configuration=Release",
],
"group": "test",
"problemMatcher": "$msCompile"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</ItemGroup>
<PropertyGroup Label="Project">
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<RootNamespace>osu.Game.Rulesets.Hishigata.Tests</RootNamespace>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ protected override void CheckForResult(bool userTriggered, double timeOffset)
if (timeOffset >= 0 && timeOffset <= 32)
{
if (CanBeHit?.Invoke(this) ?? false)
ApplyResult(r => r.Type = r.Judgement.MaxResult);
ApplyResult(Result.Judgement.MaxResult);

return;
}
if (timeOffset > 32)
ApplyResult(r => r.Type = r.Judgement.MinResult);
ApplyResult(Result.Judgement.MinResult);
}

protected override void UpdateInitialTransforms()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup Label="Project">
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<AssemblyTitle>osu.Game.Rulesets.Hishigata</AssemblyTitle>
<OutputType>Library</OutputType>
<PlatformTarget>AnyCPU</PlatformTarget>
Expand All @@ -10,6 +10,6 @@
<AssemblyName>osu.Game.Rulesets.Hishigata</AssemblyName>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="ppy.osu.Game" Version="2024.130.2"/>
<PackageReference Include="ppy.osu.Game" Version="2024.219.0"/>
</ItemGroup>
</Project>

0 comments on commit 01a6cd8

Please sign in to comment.