A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/dotnet/reactive/issues/1315 below:

Rx 5 preview missing DispatcherScheduler.Current for WPF net5.0? · Issue #1315 · dotnet/reactive · GitHub

I tried the preview version of Rx and it seems that System.Reactive.Concurrency.DispatcherScheduler.Current is not available for WPF net5.0 RC1. For NetCoreApp 3.1 it works correctly.

<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">

  <PropertyGroup>
    <OutputType>WinExe</OutputType>
    <TargetFrameworks>net5.0-windows;netcoreapp3.1</TargetFrameworks>
    <UseWPF>true</UseWPF>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="System.Reactive" Version="5.0.0-preview.16" />
  </ItemGroup>

</Project>

Based on this commit the HAS_WPF constant should be defined: db8e159

My dotnet version is 5.0.100-rc.1.20452.10. I'm using VS 16.8.0 Preview 3.1.

What am I doing wrong?

Thank you Tomas


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4