Skip to content

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

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

Closed
1 of 2 tasks
CancanTang opened this issue Feb 10, 2025 · 2 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
@Jack251970
Copy link
Contributor

Apologies for the confusion - I’m just curious why the target framework needs to be changed. I think this is our team's work to upgrade the target framework when need.

@Jack251970
Copy link
Contributor

And .net 9 is on the way. Please refer to #3286.

@Jack251970 Jack251970 mentioned this issue Feb 27, 2025
1 task
@Jack251970 Jack251970 closed this as not planned Won't fix, can't repro, duplicate, stale May 12, 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

2 participants