Skip to content

Commit 0c4e88c

Browse files
Upgraded SRMM to .NET 10 (#18)
* .NET 10 update * Update runners
1 parent 3705895 commit 0c4e88c

File tree

16 files changed

+53
-67
lines changed

16 files changed

+53
-67
lines changed

.github/workflows/dotnet-linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Setup .NET
1616
uses: actions/setup-dotnet@v4
1717
with:
18-
dotnet-version: 8.0.x
18+
dotnet-version: 10.0.x
1919
- name: Restore dependancies
2020
run: dotnet restore
2121
- name: Build

.github/workflows/dotnet-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Setup .NET
1616
uses: actions/setup-dotnet@v4
1717
with:
18-
dotnet-version: 8.0.x
18+
dotnet-version: 10.0.x
1919
- name: Restore dependancies
2020
run: dotnet restore
2121
- name: Build

ParLibrary.Tests/ParLibrary.Tests.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77

@@ -12,9 +12,9 @@
1212
</PropertyGroup>
1313

1414
<ItemGroup>
15-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.0" />
16-
<PackageReference Include="MSTest.TestAdapter" Version="4.0.1" />
17-
<PackageReference Include="MSTest.TestFramework" Version="4.0.1" />
15+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
16+
<PackageReference Include="MSTest.TestAdapter" Version="4.0.2" />
17+
<PackageReference Include="MSTest.TestFramework" Version="4.0.2" />
1818
<PackageReference Include="coverlet.collector" Version="6.0.4">
1919
<PrivateAssets>all</PrivateAssets>
2020
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

ParLibrary/ParLibrary.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>disable</Nullable>
77
<Configurations>Debug;Release</Configurations>

RyuUpdater/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ private static async Task Main(string[] args) {
3030

3131
await Task.Delay(500);
3232

33-
ZipFile.ExtractToDirectory(updateFile, targetDir, overwriteFiles: true);
33+
await ZipFile.ExtractToDirectoryAsync(updateFile, targetDir, overwriteFiles: true);
3434
Directory.Delete(tempDir, recursive: true);
3535

3636
Flags.CreateFlag(Constants.UPDATE_RECENT_FLAG_FILE_NAME);

RyuUpdater/RyuUpdater.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFrameworks>net8.0;net8.0-windows</TargetFrameworks>
6-
<LangVersion>12</LangVersion>
5+
<LangVersion>14</LangVersion>
76
<ImplicitUsings>enable</ImplicitUsings>
87
<Nullable>disable</Nullable>
98
<Configurations>Debug;Release</Configurations>
@@ -16,6 +15,7 @@
1615
<VersionPrefix>$(AssemblyVersion)</VersionPrefix>
1716
<Version>$(AssemblyVersion)</Version>
1817
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
18+
<TargetFrameworks>net10.0;net10.0-windows</TargetFrameworks>
1919
</PropertyGroup>
2020

2121
<ItemGroup>

ShinRyuModManager-CE.sln

Lines changed: 0 additions & 40 deletions
This file was deleted.

ShinRyuModManager-CE.slnx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<Solution>
2+
<Configurations>
3+
<Platform Name="x64" />
4+
</Configurations>
5+
<Project Path="ParLibrary.Tests/ParLibrary.Tests.csproj">
6+
<Platform Project="x64" />
7+
</Project>
8+
<Project Path="ParLibrary/ParLibrary.csproj">
9+
<Platform Project="x64" />
10+
</Project>
11+
<Project Path="RyuUpdater/RyuUpdater.csproj" />
12+
<Project Path="ShinRyuModManager-CE/ShinRyuModManager-CE.csproj">
13+
<Platform Project="x64" />
14+
</Project>
15+
<Project Path="Utils/Utils.csproj">
16+
<Platform Project="x64" />
17+
</Project>
18+
</Solution>

ShinRyuModManager-CE/ModLoadOrder/Generator.cs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,15 @@ public static async Task<MLO> GenerateModeLoadOrder(List<string> mods, bool loos
8080

8181
foreach (var subPath in Directory.GetDirectories(modPath)) {
8282
var subPathName = new DirectoryInfo(subPath).Name;
83-
84-
if (!(GamePath.DirectoryExistsInData(subPathName) || GamePath.FileExistsInData($"{subPathName}.par"))) {
85-
// While "stream" isn't a folder in Y0 or Kiwami, it shouldn't warn the user as it's used in place of bgm.cpk
86-
if (GamePath.CurrentGame is Game.Yakuza0 or Game.YakuzaKiwami && subPathName == "stream")
87-
continue;
83+
84+
if (GamePath.DirectoryExistsInData(subPathName) || GamePath.FileExistsInData($"{subPathName}.par"))
85+
continue;
86+
87+
// While "stream" isn't a folder in Y0 or Kiwami, it shouldn't warn the user as it's used in place of bgm.cpk
88+
if (GamePath.CurrentGame is Game.Yakuza0 or Game.YakuzaKiwami && subPathName == "stream")
89+
continue;
8890

89-
foldersNotFound.Add(subPathName);
90-
}
91+
foldersNotFound.Add(subPathName);
9192
}
9293

9394
if (foldersNotFound.Count != 0) {

ShinRyuModManager-CE/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ public static async Task InstallLibraryAsync(string guid) {
649649
Directory.Delete(destDir, true);
650650

651651
Directory.CreateDirectory(destDir);
652-
ZipFile.ExtractToDirectory(packagePath, destDir, true);
652+
await ZipFile.ExtractToDirectoryAsync(packagePath, destDir, true);
653653
}
654654

655655
private static async Task<string> DownloadLibraryPackageAsync(string fileName, LibMeta meta) {

0 commit comments

Comments
 (0)