-
Notifications
You must be signed in to change notification settings - Fork 793
Expand file tree
/
Copy pathSystem.Interactive.Async.Tests.csproj
More file actions
77 lines (65 loc) · 3.09 KB
/
Copy pathSystem.Interactive.Async.Tests.csproj
File metadata and controls
77 lines (65 loc) · 3.09 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net48;net10.0;net8.0</TargetFrameworks>
<!--
CA1510: Use ArgumentNullException.ThrowIfNull - not available on .NET 4.8
CA1822: Make member static. Not necessary for test code.
CA1861: Extract constant arrays to 'static readonly' fields. With these tests we generally prioritize readability over performance.
-->
<NoWarn>$(NoWarn);CS0618;CS8603;CS8625;CA1510;CA1822;CA1861</NoWarn>
</PropertyGroup>
<ItemGroup>
<Content Include="xunit.runner.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\System.Interactive.Async.Providers\System.Interactive.Async.Providers.csproj" />
</ItemGroup>
<!--
Since this tests the System.Interactive.Async.Providers package, which has a dependency on the legacy System.Linq.Async.Queryable package,
we need prevent the compiler from using the .NET runtime library System.Linq.AsyncEnumerable package.
So although we get this references transitively (or automatically on .NET 10.0+) we need to put them explicitly here to set aliases.
-->
<ItemGroup Condition="'$(TargetFramework)' != 'net10.0'">
<PackageReference Include="System.Linq.AsyncEnumerable" Version="10.0.6" Aliases="SystemLinqAsyncEnumerable" />
</ItemGroup>
<Target Name="_SetAliasOnBuiltInSystemLinqAsyncEnumerable" BeforeTargets="ResolveAssemblyReferences">
<ItemGroup Condition="'$(TargetFramework)' == 'net10.0'">
<Reference Condition="'%(Reference.AssemblyName)' == 'System.Linq.AsyncEnumerable'">
<Aliases>SystemLinqAsyncEnumerable</Aliases>
</Reference>
</ItemGroup>
</Target>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="FluentAssertions" Version="7.2.2" />
<PackageReference Include="xunit" Version="2.9.3" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\System.Linq.Async.Tests\ValueTaskHelpers.cs" />
</ItemGroup>
<ItemGroup>
<None Update="AsyncQueryableExTests.Generated.tt">
<LastGenOutput>AsyncQueryableExTests.Generated.cs</LastGenOutput>
<Generator>TextTemplatingFileGenerator</Generator>
</None>
<None Update="AsyncQueryableTests.Generated.tt" Generator="TextTemplatingFileGenerator" LastGenOutput="AsyncQueryableTests.Generated.cs" />
</ItemGroup>
<ItemGroup>
<Compile Update="AsyncQueryableExTests.Generated.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>AsyncQueryableExTests.Generated.tt</DependentUpon>
</Compile>
<Compile Update="AsyncQueryableTests.Generated.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>AsyncQueryableTests.Generated.tt</DependentUpon>
</Compile>
</ItemGroup>
</Project>