-
Notifications
You must be signed in to change notification settings - Fork 219
Expand file tree
/
Copy pathframework.tests.props
More file actions
36 lines (29 loc) · 1.61 KB
/
framework.tests.props
File metadata and controls
36 lines (29 loc) · 1.61 KB
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
27
28
29
30
31
32
33
34
35
36
<Project>
<PropertyGroup>
<TargetFrameworks>net9.0;net8.0;net6.0;</TargetFrameworks>
</PropertyGroup>
<Import Project="./common.tests.props"/>
<PropertyGroup>
<!-- 如果没有DI的需求,则将EnableDITestPackages设置为false -->
<EnableDITestPackages>true</EnableDITestPackages>
</PropertyGroup>
<ItemGroup Condition=" '$(EnableDITestPackages)' == 'true' ">
<PackageReference Include="Xunit.DependencyInjection.Logging" Version="8.1.0" />
<PackageReference Include="AspectCore.Extensions.Hosting" Version="2.4.0" />
</ItemGroup>
<ItemGroup Condition="'$(EnableDITestPackages)' == 'true' and '$(TargetFramework)' == 'net6.0' ">
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="6.0.36" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="6.0.1" />
<PackageReference Include="Xunit.DependencyInjection" Version="8.9.0" />
</ItemGroup>
<ItemGroup Condition=" '$(EnableDITestPackages)' == 'true' and '$(TargetFramework)' == 'net8.0' ">
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="8.0.16" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.1" />
<PackageReference Include="Xunit.DependencyInjection" Version="9.9.0" />
</ItemGroup>
<ItemGroup Condition=" '$(EnableDITestPackages)' == 'true' and '$(TargetFramework)' == 'net9.0' ">
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="9.0.5" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="9.0.5" />
<PackageReference Include="Xunit.DependencyInjection" Version="9.9.0" />
</ItemGroup>
</Project>