Skip to content
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

WinUI project referencing Reactive causes issues #1607

Closed
HairingX opened this issue Sep 23, 2021 · 2 comments
Closed

WinUI project referencing Reactive causes issues #1607

HairingX opened this issue Sep 23, 2021 · 2 comments

Comments

@HairingX
Copy link

HairingX commented Sep 23, 2021

Bug

Which library version?

5.0.0

What are the platform(s), environment(s) and related component version(s)?

.Net 5.0, WinUI3 application using newest WindowsAppSDK (v1.0.0 Preview1)

<OutputType>WinExe</OutputType>
<TargetFramework>net5.0-windows10.0.19041.0</TargetFramework>
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
<RootNamespace>WinUI3S2</RootNamespace>
<ApplicationManifest>app.manifest</ApplicationManifest>
<Platforms>x86;x64</Platforms>
<RuntimeIdentifiers>win10-x86;win10-x64</RuntimeIdentifiers>
<UseWinUI>true</UseWinUI>

What is the use case or problem?

Usage of WinUI results in ex. designer issues, since System.Reactive library references System.Windows.Controls.
This results in Ambiguous reference exceptions for UserControl, Window and the other shared control names.

What is the expected outcome?

Referencing System.Reactive library will not import System.Windows.Controls interfering with WinUI.

What is the actual outcome?
image

@HairingX
Copy link
Author

HairingX commented Sep 23, 2021

For anyone finding themselves with the same issue as I.

The issue was not caused by the Reactive library but an extension in Visual studio.
So try to disable your extensions to see if that fixes the issue for you.

Resharper extension was the culprit in my case.

@djonasdev
Copy link

djonasdev commented Apr 7, 2022

I have exactly the same problem. Have you opened an issue on YouTrack?
Found something here about it. If you have the same problem, you could vote accordingly -> https://youtrack.jetbrains.com/issue/RSRP-487429

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants