Skip to content

Commit ebde27b

Browse files
committed
update to .net8
1 parent bab2dc6 commit ebde27b

File tree

14 files changed

+21
-20
lines changed

14 files changed

+21
-20
lines changed

.github/workflows/dotnet.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,26 @@ jobs:
1313
with:
1414
fetch-depth: 0
1515
submodules: 'recursive'
16-
- name: Install .NET Core 7
16+
- name: Install .NET 8
1717
uses: actions/setup-dotnet@v1
1818
with:
19-
dotnet-version: 7.0.x
19+
dotnet-version: 8.0.x
2020
- name: Mutate Run Number
2121
run: |
2222
$num = (997+$($Env:GITHUB_RUN_NUMBER))
2323
echo "GITHUB_RUN_NUMBER_DELTA=$num" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
2424
- name: Restore project
25-
run: dotnet restore OverwatchToolchain.sln --verbosity m -r win7-x64 -p:TargetFramework=net7.0
25+
run: dotnet restore OverwatchToolchain.sln --verbosity m -r win-x64 -p:TargetFramework=net8.0
2626
- name: Build Release
27-
run: dotnet publish --configuration ReleasePublish -r win7-x64 -o dist/Release
27+
run: dotnet publish --configuration ReleasePublish -r win-x64 -o dist/Release --self-contained true
28+
# --self-contained for https://github.com/dotnet/sdk/issues/29642
2829
- name: Upload Release
2930
uses: actions/upload-artifact@v2
3031
with:
3132
name: toolchain-release
3233
path: dist/Release
3334
- name: Build Debug
34-
run: dotnet publish --configuration DebugPublish -r win7-x64 -o dist/Debug
35+
run: dotnet publish --configuration DebugPublish -r win-x64 -o dist/Debug --self-contained true
3536
- name: Upload Debug
3637
uses: actions/upload-artifact@v2
3738
with:

CASCEncDump/CASCEncDump.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>net7.0</TargetFramework>
3+
<TargetFramework>net8.0</TargetFramework>
44
<OutputType>Exe</OutputType>
55
<LangVersion>7.2</LangVersion>
66
<Version>1.0.0.0</Version>

CASCEncDump/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ private static void CompareEnc(string[] args) {
240240
}
241241

242242
HashSet<FullKey> hashSet = new HashSet<FullKey>(CASCKeyComparer.Instance);
243-
foreach (FullKey hash in otherHashes.Select(FullKey.FromString)) {
243+
foreach (FullKey hash in otherHashes.Select(x => FullKey.FromString(x))) {
244244
hashSet.Add(hash);
245245
}
246246

DataTool/DataTool.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>net7.0</TargetFramework>
3+
<TargetFramework>net8.0</TargetFramework>
44
<OutputType>Exe</OutputType>
55
<LangVersion>preview</LangVersion>
66
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
@@ -16,7 +16,7 @@
1616
</PropertyGroup>
1717
<PropertyGroup Condition=" '$(Configuration)' == 'DebugPublish' OR '$(Configuration)' == 'ReleasePublish' ">
1818
<SelfContained>true</SelfContained>
19-
<RuntimeIdentifier>win7-x64</RuntimeIdentifier>
19+
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
2020
</PropertyGroup>
2121
<ItemGroup>
2222
<ProjectReference Include="..\revorbstd\RevorbStd.csproj" />

ReplayMp4Tool/ReplayMp4Tool.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>net7.0</TargetFramework>
3+
<TargetFramework>net8.0</TargetFramework>
44
<OutputType>Exe</OutputType>
55
<LangVersion>7.2</LangVersion>
66
<Version>1.0.0.0</Version>

TankLib.Test/TankLib.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
44
</PropertyGroup>
55
<PropertyGroup>
6-
<TargetFramework>net7.0</TargetFramework>
6+
<TargetFramework>net8.0</TargetFramework>
77
<Version>1.0.0.0</Version>
88
<IsPublishable>false</IsPublishable>
99
<DeployOnBuild>false</DeployOnBuild>

TankLib/Diff.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public static IEnumerable<CKey> ReadBinaryCKeys(BinaryReader reader) {
8989
}
9090

9191
public static IEnumerable<CKey> ReadTextCKeys(StreamReader streamReader) {
92-
return streamReader.ReadToEnd().Split('\n').Select(x => x.TrimEnd('\r')).Select(CKey.FromString);
92+
return streamReader.ReadToEnd().Split('\n').Select(x => x.TrimEnd('\r')).Select(x => CKey.FromString(x));
9393
}
9494

9595
public static HashSet<CKey> ReadCKeys(Stream stream) {

TankLib/TankLib.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>net7.0</TargetFramework>
3+
<TargetFramework>net8.0</TargetFramework>
44
<OutputType>Library</OutputType>
55
<LangVersion>7.3</LangVersion>
66
<Version>1.0.0.0</Version>

TankLibHelper/TankLibHelper.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>net7.0</TargetFramework>
3+
<TargetFramework>net8.0</TargetFramework>
44
<OutputType>Exe</OutputType>
55
<LangVersion>7.2</LangVersion>
66
<Version>1.0.0.0</Version>

0 commit comments

Comments
 (0)