Telerik UI for WPF Visual Studio Extension crash on upgrade wizard

1 Answer 58 Views
General Discussions
Damien
Top achievements
Rank 1
Damien asked on 18 Aug 2022, 05:57 PM

Trying to upgrade my C# WPF application to the latest telerik version using the Upgrade Wizard,

It crash right after starting the upgrade with:

 

An error occurred while running the wizard.

Error executing custom action Telerik.Windows.WPF.VSX.Actions.MultiProjectUpdateReferencesAction: System.Runtime.InteropServices.COMException (0x80004005): This reference cannot be removed from the project because it is always referenced by the compiler.
   at VSLangProj.Reference.Remove()
   at Telerik.VSX.ProjectConfigurators.ApplicationReferenceManager.RemoveReferences()
   at Telerik.VSX.ProjectConfigurators.ApplicationReferenceManager.UpdateReferences()
   at Telerik.VSX.Actions.UpdateReferencesAction.UpdateReferences(IProjectWrapUIComponents projectWrap)
   at Telerik.VSX.Actions.MultiProjectActionBase`1.Execute(WizardContext wizardContext, IPropertyDataDictionary arguments)
   at Telerik.VSX.Actions.MultiProjectUpdateReferencesActionBase`1.Execute(WizardContext wizardContext, IPropertyDataDictionary arguments)
   at Telerik.VSX.WizardEngine.ActionManager.ExecActions()

 

Tried in VS2019 and VS2022, same results. Installed the latest Telerik extension from the VS Extension market.

1 Answer, 1 is accepted

Sort by
0
Nikolay Mishev
Telerik team
answered on 19 Aug 2022, 10:46 AM

Hi Damien,

This message usually appears when the Upgrade Wizard is used to update references that are added through a NuGet package. Usually, the wizard removes the old references and then replaces them with the newer version ones. If the references are added through a NuGet package the wizard cannot remove the old reference and throws this exception. 

In this case, I would suggest opening the solution and then using the NuGet Package Manager available through Tools > NuGet Package Manager > Manage NuGet Packages for Solution... to update the packages' version which will also update the references.

Please let us know if this worked out for you.

Regards,
Nikolay Mishev
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.

Tags
General Discussions
Asked by
Damien
Top achievements
Rank 1
Answers by
Nikolay Mishev
Telerik team
Share this question
or