Update to .NET 6

This commit is contained in:
AeonLucid
2022-01-07 05:06:45 +01:00
parent fed1e0d515
commit d0c249f73c
6 changed files with 10 additions and 11 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ jobs:
- name: Setup Dotnet - name: Setup Dotnet
uses: actions/setup-dotnet@v1 uses: actions/setup-dotnet@v1
with: with:
dotnet-version: '5.0.x' dotnet-version: '6.0.x'
- name: Setup MSBuild - name: Setup MSBuild
uses: microsoft/setup-msbuild@v1.0.3 uses: microsoft/setup-msbuild@v1.0.3
+3 -3
View File
@@ -21,10 +21,10 @@ This repository is just something I work on when bored, do not expect much at th
If you are enrolled into the closed beta, you can download a fresh copy with [SteamRE/DepotDownloader](https://github.com/SteamRE/DepotDownloader). If you are enrolled into the closed beta, you can download a fresh copy with [SteamRE/DepotDownloader](https://github.com/SteamRE/DepotDownloader).
``` ```
.\DepotDownloader.exe -app 1600360 -depot 1600361 -manifest 8099885118311987420 -username <username> .\DepotDownloader.exe -app 1600360 -depot 1600361 -manifest 720055916602660127 -username <username>
``` ```
This gives you the [exact copy](https://steamdb.info/depot/1600361/history/?changeid=M:8099885118311987420) that is used for this repository. This gives you the [exact copy](https://steamdb.info/depot/1600361/history/?changeid=M:720055916602660127) that is used for this repository.
### 2. Download the latest launcher ### 2. Download the latest launcher
@@ -32,7 +32,7 @@ Navigate to the [latest successful](https://github.com/AeonLucid/Prospect/action
Run the launcher with the first argument being the path of step 1. Run the launcher with the first argument being the path of step 1.
``` ```
./Prospect.Launcher.exe "E:\Depots\depots\1600361\7573497" ./Prospect.Launcher.exe "E:\Depots\depots\1600361\7593680"
``` ```
### 3. Clone the repository ### 3. Clone the repository
@@ -2,7 +2,7 @@
<PropertyGroup> <PropertyGroup>
<OutputType>Exe</OutputType> <OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework> <TargetFramework>net6.0</TargetFramework>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<PublishSingleFile>true</PublishSingleFile> <PublishSingleFile>true</PublishSingleFile>
<SelfContained>false</SelfContained> <SelfContained>false</SelfContained>
@@ -1,13 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk.Web"> <Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup> <PropertyGroup>
<TargetFramework>net5.0</TargetFramework> <TargetFramework>net6.0</TargetFramework>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="MongoDB.Driver" Version="2.13.2" /> <PackageReference Include="MongoDB.Driver" Version="2.14.1" />
<PackageReference Include="Serilog.AspNetCore" Version="4.1.0" /> <PackageReference Include="Serilog.AspNetCore" Version="4.1.0" />
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.14.0" /> <PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.15.0" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<TargetFramework>net5.0</TargetFramework> <TargetFramework>net6.0</TargetFramework>
</PropertyGroup> </PropertyGroup>
</Project> </Project>
+1 -2
View File
@@ -14,7 +14,6 @@ namespace Prospect.Server.Steam
public static bool VerifySignature(byte[] data, byte[] signature) public static bool VerifySignature(byte[] data, byte[] signature)
{ {
var rsa = new RSACryptoServiceProvider(); var rsa = new RSACryptoServiceProvider();
var hash = new SHA1Managed();
rsa.ImportFromPem(SystemCertificate); rsa.ImportFromPem(SystemCertificate);
@@ -24,7 +23,7 @@ namespace Prospect.Server.Steam
return false; return false;
} }
var dataHashed = hash.ComputeHash(data); var dataHashed = SHA1.HashData(data);
var dataVerified = rsa.VerifyHash(dataHashed, CryptoConfig.MapNameToOID("SHA1")!, signature); var dataVerified = rsa.VerifyHash(dataHashed, CryptoConfig.MapNameToOID("SHA1")!, signature);
return dataVerified; return dataVerified;