Merge pull request #530 from SteamRE/warnings

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

No files matched your search

+1 -1
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
+1 -1
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
+1
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>
+1 -1
View File
@@ -22,7 +22,7 @@ namespace DepotDownloader
{
PrintUsage();
if (OperatingSystem.IsWindows())
if (OperatingSystem.IsWindowsVersionAtLeast(5, 0))
{
PlatformUtilities.VerifyConsoleLaunch();
}