|
1 | | -<Project Sdk="Microsoft.NET.Sdk"> |
| 1 | +<Project Sdk="Microsoft.NET.Sdk"> |
2 | 2 | <PropertyGroup> |
3 | | - <TargetFrameworks>net472;netstandard2.0;net8.0</TargetFrameworks> |
4 | | - <!-- Keep "WebRequest is obsolete" as a warning --> |
5 | | - <WarningsNotAsErrors>$(WarningsNotAsErrors);SYSLIB0014</WarningsNotAsErrors> |
6 | | - <TargetFrameworks>net472;net8.0;net10.0</TargetFrameworks> |
| 3 | + <TargetFrameworks>net472;netstandard2.0;net8.0;net10.0</TargetFrameworks> |
7 | 4 | <PublishAot Condition="$(TargetFramework) == 'net10.0'">true</PublishAot> |
8 | 5 | <PublishAot Condition="$(TargetFramework) == 'net8.0'">true</PublishAot> |
| 6 | + <!-- Keep "WebRequest is obsolete" as a warning --> |
| 7 | + <WarningsNotAsErrors>$(WarningsNotAsErrors);SYSLIB0014</WarningsNotAsErrors> |
9 | 8 | </PropertyGroup> |
10 | 9 |
|
11 | | - |
12 | | - |
13 | | - |
14 | 10 | <ItemGroup> |
15 | | - <PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="10.0.*" /> |
16 | 11 | <PackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" Version="3.3.4"> |
17 | 12 | <PrivateAssets>all</PrivateAssets> |
18 | 13 | <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> |
19 | 14 | </PackageReference> |
20 | 15 | </ItemGroup> |
21 | 16 |
|
22 | | - <ItemGroup Condition="'$(TargetFramework)' != 'net8.0'"> |
23 | | - <PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="8.0.0" /> |
24 | | - <PackageReference Include="PolySharp" Version="1.15.0"> |
25 | | - <PrivateAssets>all</PrivateAssets> |
26 | | - <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> |
27 | | - </PackageReference> |
28 | | - |
29 | | - |
30 | | - </ItemGroup> |
31 | | - |
32 | | - |
33 | | - |
34 | | - <ItemGroup Condition="$(TargetFramework) == 'net472'"> |
| 17 | + <ItemGroup Condition="$(TargetFramework) == 'net472' Or $(TargetFramework) == 'netstandard2.0' "> |
35 | 18 | <PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0" /> |
| 19 | + <PackageReference Include="IndexRange" Version="1.1.0" /> |
36 | 20 | <PackageReference Include="System.Text.Json" Version="10.0.0" /> |
37 | 21 | <PackageReference Include="System.Net.Http" Version="4.3.4" /> |
38 | 22 | <PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3"> |
39 | 23 | <PrivateAssets>all</PrivateAssets> |
40 | 24 | <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> |
41 | 25 | </PackageReference> |
42 | | - <Reference Include="System.Net.Http" Condition="'$(TargetFramework)' == 'net472'" /> |
43 | | - </ItemGroup> |
44 | | - |
45 | | - |
46 | | - <ItemGroup Condition="$(TargetFramework) == 'net8.0'"> |
47 | | - |
48 | | - </ItemGroup> |
49 | | - |
50 | | - |
51 | | - <ItemGroup Condition="$(TargetFramework) == 'net10.0'"> |
52 | 26 | </ItemGroup> |
53 | 27 |
|
54 | 28 | <ItemGroup> |
|
0 commit comments