|
1 | 1 | <Project Sdk="Microsoft.NET.Sdk">
|
2 | 2 |
|
3 |
| - <PropertyGroup> |
4 |
| - <Description>Distributed cache implementation of Microsoft.Extensions.Caching.Distributed.IDistributedCache using ServiceStack.Redis.Core</Description> |
5 |
| - <VersionPrefix>2.0.0.1</VersionPrefix> |
6 |
| - <Authors>cnblogs.com</Authors> |
7 |
| - <TargetFrameworks>netstandard2.0;netstandard2.1;net6.0;net7.0</TargetFrameworks> |
8 |
| - <AssemblyName>ServiceStackRedisCache</AssemblyName> |
9 |
| - <PackageId>Microsoft.Extensions.Caching.ServiceStackRedis</PackageId> |
10 |
| - <PackageTags>cache;redis;distributedcache</PackageTags> |
11 |
| - <PackageProjectUrl>https://github.com/cnblogs/ServiceStackRedisCache</PackageProjectUrl> |
12 |
| - <RepositoryType>git</RepositoryType> |
13 |
| - <RepositoryUrl>https://github.com/cnblogs/ServiceStackRedisCache</RepositoryUrl> |
14 |
| - <GeneratePackageOnBuild>true</GeneratePackageOnBuild> |
15 |
| - </PropertyGroup> |
| 3 | + <PropertyGroup> |
| 4 | + <Description>Distributed cache implementation of Microsoft.Extensions.Caching.Distributed.IDistributedCache using ServiceStack.Redis.Core</Description> |
| 5 | + <VersionPrefix>2.0.0.1</VersionPrefix> |
| 6 | + <Authors>cnblogs.com</Authors> |
| 7 | + <TargetFrameworks>netstandard2.0;netstandard2.1;net6.0;net7.0</TargetFrameworks> |
| 8 | + <AssemblyName>ServiceStackRedisCache</AssemblyName> |
| 9 | + <PackageId>Microsoft.Extensions.Caching.ServiceStackRedis</PackageId> |
| 10 | + <PackageTags>cache;redis;distributedcache</PackageTags> |
| 11 | + <PackageProjectUrl>https://github.com/cnblogs/ServiceStackRedisCache</PackageProjectUrl> |
| 12 | + <RepositoryType>git</RepositoryType> |
| 13 | + <RepositoryUrl>https://github.com/cnblogs/ServiceStackRedisCache</RepositoryUrl> |
| 14 | + <GeneratePackageOnBuild>true</GeneratePackageOnBuild> |
| 15 | + </PropertyGroup> |
16 | 16 |
|
17 |
| - <ItemGroup> |
18 |
| - <Compile Remove="Properties\**" /> |
19 |
| - <EmbeddedResource Remove="Properties\**" /> |
20 |
| - <None Remove="Properties\**" /> |
21 |
| - </ItemGroup> |
| 17 | + <ItemGroup> |
| 18 | + <Compile Remove="Properties\**" /> |
| 19 | + <EmbeddedResource Remove="Properties\**" /> |
| 20 | + <None Remove="Properties\**" /> |
| 21 | + </ItemGroup> |
22 | 22 |
|
23 |
| - <ItemGroup> |
24 |
| - <PackageReference Include="Microsoft.Extensions.Caching.Abstractions" Version="7.0.0" /> |
25 |
| - <PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="7.0.0" /> |
26 |
| - <PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="7.0.0" /> |
27 |
| - <PackageReference Include="Microsoft.Extensions.Options" Version="7.0.0" /> |
28 |
| - <PackageReference Include="ServiceStack.Interfaces" Version="6.5.0" /> |
29 |
| - <PackageReference Include="ServiceStack.Redis" Version="6.5.0" /> |
30 |
| - </ItemGroup> |
| 23 | + <Choose> |
| 24 | + <When Condition="'$(TargetFramework)' == 'net6.0' Or '$(TargetFramework)' == 'net7.0'"> |
| 25 | + <ItemGroup> |
| 26 | + <FrameworkReference Include="Microsoft.AspNetCore.App" /> |
| 27 | + </ItemGroup> |
| 28 | + </When> |
| 29 | + <Otherwise> |
| 30 | + <ItemGroup> |
| 31 | + <PackageReference Include="Microsoft.Extensions.Caching.Abstractions" Version="7.0.0" /> |
| 32 | + <PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="7.0.0" /> |
| 33 | + <PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="7.0.0" /> |
| 34 | + <PackageReference Include="Microsoft.Extensions.Options" Version="7.0.0" /> |
| 35 | + </ItemGroup> |
| 36 | + </Otherwise> |
| 37 | + </Choose> |
| 38 | + |
| 39 | + <ItemGroup> |
| 40 | + <PackageReference Include="ServiceStack.Interfaces" Version="6.5.0" /> |
| 41 | + <PackageReference Include="ServiceStack.Redis" Version="6.5.0" /> |
| 42 | + </ItemGroup> |
31 | 43 |
|
32 | 44 | </Project>
|
0 commit comments