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

Open
@CancanTang

Description

@CancanTang

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions