Hello, we have been using Infragistics WPF in our .NET 4.7 based library for a while. Now we want to create a multitarget version of this library which also supports .NET 5.0. So far we have been using the versioned libraries for .NET Framework 4 and I would actually like to stick with that. Are the .NET5.0 WPF libs also available in a versioned build?
Hello Uwe,
You can migrate to NetCore 5 without issue. Our DLL/assemblies can still be added, in solution explorer, if you right click Dependencies > Add COM Reference and go about it as usual. For now the VS Toolbox only reflects what is added to the project, not what is installed. Same goes if you were to use our Nuget packages. I am not aware of any settings for VS to pick up what is installed and autogenerate a toolbox in NetCore as it did in NetFramework. But let me know if you have any questions.
Thanks Michael - you are suggesting that I add references to the .NET4 assemblies of Infragistics WPF? That will probably work for WPF, but it's less ideal since you might get runtime errors (that's what happened with UltraGrid in Infragistics WinForms because of the obsolescence of ContextMenu property in .NET 5). That's why I would have preferred to use your .NET 5 assemblies (as you package them in the Nuget packages). But these are unversioned and I would have to use conditional code in my Xaml (which has references to the versioned Infragistics assemblies) like this:
xmlns:igRibbon="clr-namespace:Infragistics.Windows.Ribbon;assembly=InfragisticsWPF4.Ribbon.v21.1"
Conditional code in xaml is really painful that's why I would like to use the same assembly names in both cases.
The assembly version is not required for the namepace
Thanks Michael - I think this was the crucial hint. This allows to bind to assemblies with different names (472: versioned assemblies as assembly references, 5.0: nuget packages with unversioned assembly names) without having to change the xaml code.