mirror of
https://github.com/SteamRE/DepotDownloader.git
synced 2026-02-04 05:31:18 +01:00
Merge pull request #530 from SteamRE/warnings
Fix warnings, enable Warnings as Errors
This commit is contained in:
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -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
|
||||
|
||||
2
.github/workflows/sk2-ci.yml
vendored
2
.github/workflows/sk2-ci.yml
vendored
@@ -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
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user