forked from DataDog/dd-trace-dotnet
/
Samples.ServiceStack.Redis.csproj
26 lines (22 loc) · 1.23 KB
/
Samples.ServiceStack.Redis.csproj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<!--
Note:
ServiceStack.Redis 6.2.0 accidentally broke .NET Standard 2.0 compliance
The PackageVersionsGeneratorDefinitions.json has been updated with this restriction.
The second <ApiVersion> will lower the targeted ServiceStack.Redis NuGet to 6.1.0 for .NET Core 2.1/3.0
if the first <ApiVersion> is targeting version 6.2.0 of the ServiceStack.Redis Nuget.
This is done to allow the project to build for all targeted frameworks locally.
-->
<ApiVersion Condition="'$(ApiVersion)' == ''">5.2.0</ApiVersion>
<ApiVersion Condition="('$(TargetFramework)'=='netcoreapp2.1' OR '$(TargetFramework)'=='netcoreapp3.0') AND '$(ApiVersion)' == '6.2.0'">6.1.0</ApiVersion>
<RequiresDockerDependency>true</RequiresDockerDependency>
<!-- Required to build multiple projects with the same Configuration|Platform -->
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
<PackageReference Include="ServiceStack.Redis" Version="$(ApiVersion)" />
</ItemGroup>
</Project>