WindowsDesktopTests.csproj 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <Project Sdk="Microsoft.NET.Sdk">
  2. <PropertyGroup>
  3. <TargetFrameworks>net5.0;net5.0-windows10.0.19041</TargetFrameworks>
  4. <NoWarn>$(NoWarn);CS0618</NoWarn>
  5. <LangVersion>latest</LangVersion>
  6. <AssemblyName>Tests.System.Reactive</AssemblyName>
  7. <RootNamespace>Tests.System.Reactive</RootNamespace>
  8. <SignAssembly>true</SignAssembly>
  9. <AssemblyOriginatorKeyFile>..\..\Source\ReactiveX.snk</AssemblyOriginatorKeyFile>
  10. </PropertyGroup>
  11. <PropertyGroup Condition="'$(TargetFramework)' == 'netcoreapp3.1'">
  12. <UseWPF >true</UseWPF>
  13. <UseWindowsForms>true</UseWindowsForms>
  14. <DefineConstants>$(DefineConstants);HAS_WINRT;HAS_WINFORMS;HAS_WPF;HAS_DISPATCHER;DESKTOPCLR</DefineConstants>
  15. </PropertyGroup>
  16. <PropertyGroup Condition="$(TargetFramework.StartsWith('net5.0-windows'))">
  17. <UseWPF >true</UseWPF>
  18. <UseWindowsForms>true</UseWindowsForms>
  19. <DefineConstants>$(DefineConstants);HAS_TRACE;HAS_WINRT;PREFER_ASYNC;HAS_TPL46;NO_REMOTING;HAS_WINFORMS;HAS_WPF;HAS_DISPATCHER;DESKTOPCLR;WINDOWS;CSWINRT</DefineConstants>
  20. </PropertyGroup>
  21. <ItemGroup>
  22. <Content Include="..\..\Source\tests\Tests.System.Reactive\xunit.runner.json">
  23. <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
  24. </Content>
  25. <Compile Include="..\..\Source\tests\Tests.System.Reactive\**\*.cs" Exclude="..\..\Source\tests\Tests.System.Reactive\obj\**" />
  26. </ItemGroup>
  27. <ItemGroup>
  28. <PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.7.1" />
  29. <PackageReference Include="xunit" Version="2.4.1" />
  30. <PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />
  31. <PackageReference Include="System.Reactive" Version="5.1.0-preview*" />
  32. <PackageReference Include="Microsoft.Reactive.Testing" Version="5.1.0-preview*" />
  33. <PackageReference Include="System.Reactive.Observable.Aliases" Version="5.1.0-preview*" />
  34. </ItemGroup>
  35. </Project>