1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <Project Sdk="Microsoft.NET.Sdk">
- <PropertyGroup>
- <TargetFrameworks>net472;net8.0;net8.0-windows10.0.19041;net9.0;net9.0-windows10.0.19041</TargetFrameworks>
- <!-- IDE0330: Prefer 'System.Threading.Lock': not applicable for as long as we support .NET 8.0 or .NET FX, because it is unavailable on those targets.
- MSTEST0049: Consider overload accepting a CancellationToken - there are 136 of these, and since I've not yet run into a situation that this would have helped in, it's not a priority.
- -->
- <NoWarn>$(NoWarn);CS0618;IDE0330;MSTEST0049</NoWarn>
- </PropertyGroup>
- <PropertyGroup Condition="$(TargetFramework.StartsWith('net8.0-windows')) or $(TargetFramework.StartsWith('net9.0-windows')) or '$(TargetFramework)' == 'net472'">
- <UseWPF>true</UseWPF>
- <UseWindowsForms>true</UseWindowsForms>
- </PropertyGroup>
- <ItemGroup>
- <Content Include="xunit.runner.json">
- <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
- </Content>
- </ItemGroup>
- <ItemGroup>
- <!--
- We need to be on a sufficiently recent version of the test framework, because we need this fix:
- https://github.com/microsoft/testfx/pull/1071
- Without this, the test runner fails to process Windows-version-specific TFMs for .NET 6.0.
- Since the various libraries that require net6.0-windows all specify a minimum version (10.0.19041
- for reasons not currently clear to me; idg10) this test project needs to specify at least as new
- a version. If we write just net6.0-windows, that turns out to imply Windows 7.0, so it is not
- considered compatible with a net6.0-windows10.0.19041 library.
- Before that PR was merged, the test runner wouldn't work if the host specified a TFM with a
- specific Windows version.
- -->
- <PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.0" />
- <PackageReference Include="MSTest.TestAdapter" Version="3.11.0" />
- <PackageReference Include="MSTest.TestFramework" Version="3.11.0" />
- <PackageReference Include="xunit.assert" Version="2.9.3" />
- <ProjectReference Include="..\..\src\System.Reactive\System.Reactive.csproj" />
- <ProjectReference Include="..\..\src\System.Reactive.Observable.Aliases\System.Reactive.Observable.Aliases.csproj" />
- <ProjectReference Include="..\..\src\Microsoft.Reactive.Testing\Microsoft.Reactive.Testing.csproj" />
- </ItemGroup>
- </Project>
|