Fix warnings, enable Warnings as Errors
@ -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
@ -30,7 +30,7 @@ jobs:
dotnet add DepotDownloader/DepotDownloader.csproj package SteamKit2 --prerelease
@ -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>
@ -22,7 +22,7 @@ namespace DepotDownloader
{
PrintUsage();
if (OperatingSystem.IsWindows())
if (OperatingSystem.IsWindowsVersionAtLeast(5, 0))
PlatformUtilities.VerifyConsoleLaunch();
}