Hello.
We've been using Infragistics .WPF + WinForms 2015.1 controls in our product for several years and now decided to migrate from .NET Framework 4.5 to .NET6 (as the first step of eventually migrating to .NET 8).
WPF part migrated seamlessly but we had some errors with our WinForms part, because some WinForms controls like ContextMenu were not available in .NET6 anymore.
So we decided to evaluate the current Infragistics WinForms version 24.1 trial before buying the new version. Installed it and replaced the dll references from v15.1 to v24.1. Some errors (like the one about ContextMenu) disappeared. But some remained, in particular it's failing to load type StatusBar from System.Windows.Forms 6.0 when loading UltraWinDock.
I can share the exact error if that helps but first I wanted to check if we chose the right way to upgrade? I've read in other topics something about we can't use plain dlls anymore with .NET5+ and have to use NuGet instead but I'm not sure why that is so.
So what's the correct way to upgrade WinForms project with Infragistics controls from .NET Framework to .NET6?
Thanks in advance.
Thanks for a quick reply, I switched to Nuget and now it works perfectly.
Hello James,
Thank you for your post on this matter!
In order to use .NET Core 5 or later with the Infragistics for Windows Forms controls, you must use the NuGet packages that we expose. The DLLs are targeted against .NET Framework 4.X, and so if you attempt to use them, they might work, but any code specific to .NET Core 5 or later will not be present.
I believe the StatusBar issue you are seeing is likely an issue specific to .NET Core, and so I would recommend using the NuGet packages. For more information on using them, I would recommend taking a look at the following documentation: https://es.infragistics.com/help/winforms/nuget-feeds.
Please let me know if you have any other questions or concerns on this matter.