dotnet / upgrade-assistant

A tool to assist developers in upgrading .NET Framework applications to .NET 6 and beyond
MIT License
1.1k stars 162 forks source link

Windows Forms Deprecated controls messages in WPF Project #1264

Open DavidBerg-MSFT opened 2 years ago

DavidBerg-MSFT commented 2 years ago

Ran the Upgrade Assistant on a large WPF project and I got a lot of messages like this:

[12:00:47 INF] Diagnostic UA0013_M with the message Windows Forms Deprecated controls : DataGrid needs to be replaced with DataGridView. For more details see - https://docs.microsoft.com/en-us/dotnet/core/compatibility/winforms#removed-controls generated
[12:00:47 INF] Diagnostic UA0013_O with the message Windows Forms Deprecated controls : Menu needs to be replaced with ToolStripDropDown, ToolStripDropDownMenu. For more details see - https://docs.microsoft.com/en-us/dotnet/core/compatibility/winforms#removed-controls generated
[12:00:47 INF] Diagnostic UA0013_P with the message Windows Forms Deprecated controls : MenuItem needs to be replaced with ToolStripMenuItem. For more details see - https://docs.microsoft.com/en-us/dotnet/core/compatibility/winforms#removed-controls generated
[12:00:47 INF] Diagnostic UA0013_L with the message Windows Forms Deprecated controls : ContextMenu needs to be replaced with ContextMenuStrip. For more details see - https://docs.microsoft.com/en-us/dotnet/core/compatibility/winforms#removed-controls generated

I assume these are inaccurate?

To Reproduce

The project's fairly large and I can't copy it here; however, I assume that the system is getting confused because of a couple of references to Windows Forms to reference dialog boxes?

Exceptions (if any)

None

Further technical details

GRPDAN01 commented 2 years ago

Same here

brandonh-msft commented 2 years ago

I've reached out to David internally to get more repro details. @GRPDAN01 if you have a small repro that showcases this issue, is there a chance you could attach it? Thanks!