WPF Project Converter Error (.NET Core)

1 Answer 24 Views
General Discussions
Top achievements
Rank 1
Herald asked on 14 Nov 2021, 12:00 AM


I am trying to convert a .NET Framework 4.7.2 (Prism) application to .NET Core. I am trying to use the Telerik WPF Project Converter, but I am hitting this error right after I click "Next" on the first screen of the wizard.

(See screenshot)

This is the message:

The wizard encountered an error while trying to handle user event.

System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at Telerik.Windows.WPF.VSX.ProjectConfigurators.NetCoreCheckableProjectItemsFactory.Create(IList`1 distributionTokens)
   at Telerik.VSX.Wizards.ViewModels.UpgradeProjectWizardViewModel`2.get_ProjectItems()
   at Telerik.Windows.WPF.VSX.Wizards.UpgradeProjectWizardBase`2.TryGetProjects(Version targetFramework, Boolean useNoXaml)
   at Telerik.Windows.WPF.VSX.Wizards.NetCoreConvertWizard.TryGetFrameworkProjects(Boolean useNoXaml)
   at Telerik.Windows.WPF.VSX.Wizards.NetCoreConvertWizard.GetPropertyValue(String propertyName)
   at Telerik.VSX.WizardEngine.Controls.WizardControlBase.PopulateCollectedValues(IPropertyDataDictionary gatheredData)
   at Telerik.VSX.WizardFramework.Pages.DynamicPageController.GetData()
   at Telerik.WizardFramework.Wizard.GetCurrentPageData()
   at Telerik.WizardFramework.Wizard.UpdateNavigation()
   at Telerik.WizardFramework.Wizard.PostMove(Boolean movingNext)
   at Telerik.WizardFramework.Wizard.OnMoveNext()
   at Telerik.WizardFramework.Wizard.UI_Next(Object sender, EventArgs e)
   at Telerik.WizardEngine.Helpers.EventHelper.<>c__DisplayClass0_0.<RaiseEvent>b__0()
   at Telerik.WizardEngine.Helpers.EventHelper.CatchExceptionAndSendReport(Action action)




1 Answer, 1 is accepted

Sort by
Telerik team
answered on 17 Nov 2021, 01:57 PM

Hi Herald,

Thank you for taking the time to report this issue.

I was able to reproduce the issue at my end and hence logged an item in our backlog to fix this. It will go live with one of the next releases of the Visual Studio extensions. You could follow that through the Visual Studio Marketplace. I have also added 1500 Telerik Points for the reported bug. 

Unfortunately, there is not an easy way to work around this. However, we are using two tools provided by Microsoft and are executed by our wizard. The first one is the .NET Portability Analyzer which analyzes the APIs in your current project and determines whether they could be migrated to .NET Core. The other one is the Try Convert which performs the actual conversion. You could try running these tools to achieve the conversion performed by the wizard until the issue is fixed.

In case you have any other questions, please get back to us.

Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

General Discussions
Asked by
Top achievements
Rank 1
Answers by
Telerik team
Share this question