-
Notifications
You must be signed in to change notification settings - Fork 766
Closed
Labels
Description
I am trying to migrate a WPF application from .NET Core 3.1 with Rx 4.4.1 to .NET 5 and Rx 5.0.0
I am facing the following compilation issues
[CS0246] The type or namespace name 'DispatcherScheduler' could not be found (are you missing a using directive or an assembly reference?)
[CS1061] 'IObservable<long>' does not contain a definition for 'ObserveOnDispatcher' and no accessible extension method 'ObserveOnDispatcher' accepting a first argument of type 'IObservable<long>' could be found (are you missing a using directive or an assembly reference?)
I have read the v5.0 changes and #1315 and adapted my csproj as @clairernovotny recommended it:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net5.0-windows10.0.19041</TargetFramework>
<RuntimeIdentifiers>win-x64</RuntimeIdentifiers>
<LangVersion>9.0</LangVersion>
<OutDir>..\..\Output\</OutDir>
<UseWPF>true</UseWPF>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="System.Reactive" Version="5.0.0" />
<PackageReference Include="System.Reactive.Linq" Version="5.0.0" />
</Project>
but still get those compilation errors. So, what am I doing wrong?
I am also a bit confused by the sentence ".NET 5 with the Windows 10 19041 SDK (able to target earlier Windows versions)" on the README
What do I need to do if I want to have my application supported on Windows version supported by .NET 5 except Windows 7 SP1
OS | Version | Architectures | Lifecycle |
---|---|---|---|
[Windows Client][Windows-client] | 7 SP1(*), 8.1 | x64, x86 | [Windows][Windows-lifecycle] |
[Windows 10 Client][Windows-client] | Version 1607+(**) | x64, x86, Arm64 | [Windows][Windows-lifecycle] |
[Windows Server][Windows-Server] | 2012 R2+ | x64, x86 | [Windows Server][Windows-Server-lifecycle] |
[Windows Server Core][Windows-Server] | 2012 R2+ | x64, x86 | [Windows Server][Windows-Server-lifecycle] |
[Nano Server][Nano-Server] | Version 1809+ | x64 | [Windows Server][Windows-Server-lifecycle] |
Thanks for your appreciated help!