From 659cbb97814732c311ea3f22c0b887a77751ad2c Mon Sep 17 00:00:00 2001 From: JustArchi Date: Fri, 1 Jun 2018 20:11:20 +0200 Subject: [PATCH] Add workaround for https://github.com/Microsoft/msbuild/issues/3350 --- .travis.yml | 2 +- ArchiSteamFarm/ArchiSteamFarm.csproj | 5 +++++ appveyor.yml | 16 ++++++++-------- 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index 560c24e56..fa6efd935 100644 --- a/.travis.yml +++ b/.travis.yml @@ -40,7 +40,7 @@ script: - | set -e - dotnet build ArchiSteamFarm -c "$CONFIGURATION" -o 'out/source' /nologo "/p:ASFVariant=generic" + dotnet build ArchiSteamFarm -c "$CONFIGURATION" -o 'out/source' /nologo dotnet test ArchiSteamFarm.Tests -c "$CONFIGURATION" -o 'out/source' /nologo publish() { diff --git a/ArchiSteamFarm/ArchiSteamFarm.csproj b/ArchiSteamFarm/ArchiSteamFarm.csproj index 2641c4eb7..272fae3cc 100644 --- a/ArchiSteamFarm/ArchiSteamFarm.csproj +++ b/ArchiSteamFarm/ArchiSteamFarm.csproj @@ -49,6 +49,11 @@ + + + + + True diff --git a/appveyor.yml b/appveyor.yml index d1140009b..0563f5453 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -31,7 +31,7 @@ before_build: dotnet --info if ($LastExitCode -ne 0) { - throw "Command failed." + throw "Last command failed." } build_script: - pwsh: >- @@ -42,10 +42,10 @@ build_script: $ProgressPreference = 'SilentlyContinue' - dotnet build ArchiSteamFarm -c "$env:CONFIGURATION" -o 'out\source' /nologo "/p:ASFVariant=generic" + dotnet build ArchiSteamFarm -c "$env:CONFIGURATION" -o 'out\source' /nologo if ($LastExitCode -ne 0) { - throw "Command failed." + throw "Last command failed." } test_script: - pwsh: >- @@ -59,7 +59,7 @@ test_script: dotnet test ArchiSteamFarm.Tests -c "$env:CONFIGURATION" -o 'out\source' /nologo if ($LastExitCode -ne 0) { - throw "Command failed." + throw "Last command failed." } after_test: - pwsh: >- @@ -86,7 +86,7 @@ after_test: } if ($LastExitCode -ne 0) { - throw "Command failed." + throw "Last command failed." } # If we include any helper scripts for this variant, copy them to output directory @@ -99,7 +99,7 @@ after_test: tools\rcedit\rcedit-x64.exe "ArchiSteamFarm\out\$Variant\ArchiSteamFarm.exe" --set-icon 'resources\ASF.ico' if ($LastExitCode -ne 0) { - throw "Command failed." + throw "Last command failed." } } else { Copy-Item 'resources\ASF.ico' -Destination "ArchiSteamFarm\out\$Variant\ArchiSteamFarm.ico" @@ -121,14 +121,14 @@ after_test: 7z a -bd -tzip -mm=Deflate64 $zipArgs "ArchiSteamFarm\out\ASF-$Variant.zip" "$env:APPVEYOR_BUILD_FOLDER\ArchiSteamFarm\out\$Variant\*" if ($LastExitCode -ne 0) { - throw "Command failed." + throw "Last command failed." } # TODO: Change me to Push-AppveyorArtifact once https://github.com/appveyor/ci/issues/2183 is fixed appveyor PushArtifact "ArchiSteamFarm\out\ASF-$Variant.zip" -FileName "ASF-$Variant.zip" -DeploymentName "ASF-$Variant.zip" if ($LastExitCode -ne 0) { - throw "Command failed." + throw "Last command failed." } }