-
Notifications
You must be signed in to change notification settings - Fork 751
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rx 5 and .NET 5 for WPF application #1423
Comments
You should not need a reference to This works for me: using System;
using System.Reactive.Concurrency;
namespace ClassLibrary4
{
public class Class1
{
public Class1()
{
DispatcherScheduler scheduler;
}
}
} <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" />
</ItemGroup>
</Project> |
Oh ok, I could remove that reference without any issue 👍 I tried in a simplified WPF project and it didn't work at first, but when I loaded it in VS 16.8 it is worked! So, it seems that my problem was not coming from Rx but from Rider EAP! Adn after loading my full project into VS I could also compile it! Thanks a lot @clairernovotny So, with those settings, would it mean that my WPF app would work on all .NET 5 supported version of Windows? |
Yes |
Fantastic @clairernovotny again BIG thanks to you for your major help! |
Can't find ObserveOnDispatcher(). ok target: error target: |
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
I have read the v5.0 changes and #1315 and adapted my csproj as @clairernovotny recommended it:
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
Thanks for your appreciated help!
The text was updated successfully, but these errors were encountered: