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

BUG: Flow.Launcher retarget to .NET 10 failed with exception about ambiguous reference between 'System.Windows.Controls.ContextMenu' and 'System.Windows.Forms.ContextMenu' #3234

Open
1 of 2 tasks
CancanTang opened this issue Feb 10, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@CancanTang
Copy link

Checks

  • I have checked that this issue has not already been reported.

  • I am using the latest version of Flow Launcher.

Problem Description

When retargeting Flow.Launcher app to .NET 10, it is built failed with errors:

'MenuItem' is an ambiguous reference between 'System.Windows.Controls.MenuItem' and 'System.Windows.Forms.MenuItem'

This is By Design for .Net 10
Please refer to dotnet/winforms#12903 to get details

To Reproduce

  1. Retarget Flow.Launcher\Flow.Launcher.csproj to net10.0-windows10.0.19041.0
  2. run "dotnet publish Flow.Launcher"

It will be show error : " 'MenuItem' is an ambiguous reference between 'System.Windows.Controls.MenuItem' and 'System.Windows.Forms.MenuItem'"

Screenshots

No response

Flow Launcher Version

1.0.0.0

Windows Build Number

NA

Error Log

Replace this line with the important log contents.
@CancanTang CancanTang added the bug Something isn't working label Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant