Merge pull request #530 from SteamRE/warnings

Fix warnings, enable Warnings as Errors
This commit is contained in:
Pavel Djundik
2024-08-27 14:12:57 +03:00
committed by GitHub
4 changed files with 4 additions and 3 deletions

View File

@@ -33,7 +33,7 @@ jobs:
dotnet-version: 8.0.x
- name: Build
run: dotnet publish DepotDownloader/DepotDownloader.csproj -c ${{ matrix.configuration }} -o artifacts
run: dotnet publish DepotDownloader/DepotDownloader.csproj -c ${{ matrix.configuration }} -o artifacts /p:ContinuousIntegrationBuild=true
- name: Upload artifact
uses: actions/upload-artifact@v4

View File

@@ -30,7 +30,7 @@ jobs:
dotnet add DepotDownloader/DepotDownloader.csproj package SteamKit2 --prerelease
- name: Build
run: dotnet publish DepotDownloader/DepotDownloader.csproj -c ${{ matrix.configuration }} -o artifacts
run: dotnet publish DepotDownloader/DepotDownloader.csproj -c ${{ matrix.configuration }} -o artifacts /p:ContinuousIntegrationBuild=true
- name: Upload artifact
uses: actions/upload-artifact@v4

View File

@@ -10,6 +10,7 @@
<Copyright>Copyright © SteamRE Team 2024</Copyright>
<ApplicationIcon>..\Icon\DepotDownloader.ico</ApplicationIcon>
<Deterministic>true</Deterministic>
<TreatWarningsAsErrors Condition="'$(ContinuousIntegrationBuild)' == 'true'">true</TreatWarningsAsErrors>
</PropertyGroup>
<ItemGroup>

View File

@@ -22,7 +22,7 @@ namespace DepotDownloader
{
PrintUsage();
if (OperatingSystem.IsWindows())
if (OperatingSystem.IsWindowsVersionAtLeast(5, 0))
{
PlatformUtilities.VerifyConsoleLaunch();
}