| 1234567891011121314151617181920212223242526272829303132 |
- <Project>
- <!-- This props all need to be set in targets as they depend on the values set earlier -->
- <PropertyGroup Condition="'$(TargetFramework)' == 'netstandard1.0'">
- <DefineConstants>$(DefineConstants);NO_ARRAY_EMPTY;NO_CODE_COVERAGE_ATTRIBUTE</DefineConstants>
- </PropertyGroup>
- <PropertyGroup Condition="'$(TargetFramework)' == 'netstandard1.4'">
- <DefineConstants>$(DefineConstants);NO_CODE_COVERAGE_ATTRIBUTE</DefineConstants>
- </PropertyGroup>
- <PropertyGroup Condition="'$(TargetFramework)' == 'net45'">
- <DefineConstants>$(DefineConstants);NO_ARRAY_EMPTY;NO_TASK_FROMEXCEPTION</DefineConstants>
- </PropertyGroup>
- <PropertyGroup Condition="'$(TargetFramework)' == 'net46' or '$(TargetFramework)' == 'net461'">
- <DefineConstants>$(DefineConstants);USE_ASYNC_ITERATOR</DefineConstants>
- </PropertyGroup>
- <PropertyGroup Condition="'$(TargetFramework)' == 'netcoreapp3.0' or '$(TargetFramework)' == 'netstandard2.1'">
- <DefineConstants>$(DefineConstants);USE_ASYNC_ITERATOR;HAS_ASYNCENUMERABLE;HAS_ASYNCDISPOSABLE;BCL_HAS_CONFIGUREAWAIT;HAS_VALUETUPLE</DefineConstants>
- </PropertyGroup>
- <PropertyGroup>
- <Product>$(AssemblyName) ($(TargetFramework))</Product>
- </PropertyGroup>
-
- <PropertyGroup Condition="'$(IsTestProject)' == 'true'">
- <UseSourceLink>true</UseSourceLink>
- <CoverletOutputFormat>cobertura</CoverletOutputFormat>
- <Exclude>[xunit.*]*</Exclude>
- <CoverletOutput>$(MSBuildThisFileDirectory)coverlet/raw/$(AssemblyName)/$(TargetFramework)/</CoverletOutput>
- <CollectCoverage Condition="'$(TF_BUILD)' == 'true'">true</CollectCoverage>
- </PropertyGroup>
- </Project>
|