Use <ContinuousIntegrationBuild/> prop

This commit is contained in:
YoshiRulz 2021-11-15 18:15:28 +10:00
parent 7a3f96b5a6
commit 908d4519c5
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
2 changed files with 6 additions and 3 deletions

View File

@ -1,6 +1,7 @@
<Project>
<PropertyGroup>
<AnalysisLevel>5</AnalysisLevel>
<ContinuousIntegrationBuild Condition=" '$(GITLAB_CI)' != '' Or '$(APPVEYOR)' != '' ">true</ContinuousIntegrationBuild>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<ErrorReport>prompt</ErrorReport>
<IsTargetingNetFramework>$(TargetFramework.StartsWith("net4"))</IsTargetingNetFramework>

View File

@ -1,11 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework Condition=" '$(APPVEYOR)' == '' ">net5.0</TargetFramework>
<TargetFramework Condition=" '$(APPVEYOR)' != '' ">netcoreapp3.1</TargetFramework>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>
<PropertyGroup Condition=" '$(APPVEYOR)' != '' ">
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<Import Project="../MainSlnCommon.props" />
<PropertyGroup>
<DefineConstants Condition=" '$(GITLAB_CI)' != '' Or '$(APPVEYOR)' != '' ">$(DefineConstants);SKIP_PLATFORM_TESTS</DefineConstants>
<DefineConstants Condition=" '$(ContinuousIntegrationBuild)' == 'true' ">$(DefineConstants);SKIP_PLATFORM_TESTS</DefineConstants>
<OutputPath>$(ProjectDir)../../test_output</OutputPath>
</PropertyGroup>
<ItemGroup>