Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit d3b7d68

Browse files
committed
Update ServiceStack.Redis.Source.csproj
1 parent c54789e commit d3b7d68

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

src/ServiceStack.Redis/ServiceStack.Redis.Source.csproj

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<PropertyGroup>
33
<PackageId>ServiceStack.Redis</PackageId>
44
<AssemblyName>ServiceStack.Redis</AssemblyName>
5-
<TargetFrameworks>net45;netstandard2.0</TargetFrameworks>
5+
<TargetFrameworks>net45;net472;netstandard2.0;netstandard2.1</TargetFrameworks>
66
<Title>C# Redis client for the Redis NoSQL DB</Title>
77
<PackageDescription>
88
C# Redis Client for the worlds fastest distributed NoSQL datastore.
@@ -11,11 +11,25 @@
1111
</PackageDescription>
1212
<PackageTags>Redis;NoSQL;Client;Distributed;Cache;PubSub;Messaging;Transactions</PackageTags>
1313
</PropertyGroup>
14+
<!-- TODO: talk about TFMs; Microsoft.Bcl.AsyncInterfaces starts at net461 -->
15+
<PropertyGroup Condition="'$(TargetFramework)' == 'netstandard2.1'">
16+
<DefineConstants>$(DefineConstants);ASYNC_MEMORY</DefineConstants>
17+
</PropertyGroup>
18+
<ItemGroup Condition="'$(TargetFramework)'=='net45'">
19+
<Compile Remove="**/*.Async.cs" />
20+
<Compile Remove="AsyncInterfaces/**/*.cs" />
21+
<None Include="**/*.Async.cs" />
22+
<None Include="AsyncInterfaces/**/*.cs" />
23+
</ItemGroup>
1424
<ItemGroup>
1525
<ProjectReference Include="..\..\..\ServiceStack\src\ServiceStack.Common\ServiceStack.Common.Source.csproj" />
1626
</ItemGroup>
1727
<ItemGroup Condition=" '$(TargetFramework)' == 'net45' ">
1828
<Reference Include="System.Net" />
29+
</ItemGroup>
30+
<ItemGroup Condition=" '$(TargetFramework)' == 'net472' ">
31+
<Reference Include="System.Net" />
32+
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="1.1.0" />
1933
</ItemGroup>
2034
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
2135
<PackageReference Include="System.Net.Security" Version="4.3.2" />
@@ -24,6 +38,9 @@
2438
<PackageReference Include="System.Net.NameResolution" Version="4.3.0" />
2539
<PackageReference Include="System.Data.Common" Version="4.3.0" />
2640
<PackageReference Include="System.Threading.Thread" Version="4.3.0" />
41+
42+
<!-- note: not needed from netstandard2.1 or netcoreapp3.0 onwards -->
43+
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="1.1.0" />
2744
</ItemGroup>
2845

2946
</Project>

0 commit comments

Comments
 (0)