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

Text-Grab retarget to .NET 10 failed with exception about ambiguous reference between 'System.Windows.Controls.ContextMenu' and 'System.Windows.Forms.ContextMenu' #514

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

Comments

@CancanTang
Copy link

Describe the bug
When retargeting Text-Grab 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
Steps to reproduce the behavior:

  1. retarget Text-Grab\Text-Grab.csproj net10.0-windows10.0.20348.0
  2. dotnet publish Text-Grab

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

@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