Planned
Last Updated: 12 Nov 2021 14:47 by ADMIN
Monique
Created on: 09 Nov 2021 13:15
Category: Installer and VS Extensions
Type: Bug Report
0
Viusal Studio Extension Error

Below is the error.  I had removed all the references and was trying to add them back through the configure project extension vs 2019 and vs 2022 threw the same error. 

 

An error occurred while running the wizard.

Error executing custom action Telerik.WinControls.VSX.Actions.UpdateReferencesAction: 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.Internal.ProjectManagement.ApplicationProjectAssemblyReference.RemoveReference()
   at Telerik.VSX.ProjectConfigurators.ApplicationReferenceManager.RemoveReferences()
   at Telerik.VSX.ProjectConfigurators.ApplicationReferenceManager.UpdateReferences()
   at Telerik.VSX.Actions.UpdateReferencesAction.UpdateReferences(IProjectWrapUIComponents projectWrap)
   at Telerik.VSX.Actions.UpdateReferencesAction.Execute(WizardContext wizardContext, IPropertyDataDictionary arguments, IProjectWrap project)
   at Telerik.VSX.Actions.ProjectActionBase.Execute(WizardContext wizardContext, IPropertyDataDictionary arguments)
   at Telerik.VSX.WizardEngine.Actions.ActionBase.Telerik.WizardFramework.IAction.Execute(IWizardContext wizardContext, IPropertyDataDictionary arguments)
   at Telerik.VSX.WizardEngine.ActionManager.ExecActions()

 

 

1 comment
ADMIN
Vesko
Posted on: 12 Nov 2021 14:47

Hello Monique,

This error occurs when the Upgrade Wizard is used to update NuGet package references. The wizard removes the old references and then replaces them with the newer ones. It, however, does not support NuGet package references. This is a feature that will be released in one of the upcoming releases.

If that is the case, I recommend using Tools > NuGet Package Manager > Manage NuGet Packages for Solution... to update your references. Here is an article that can be useful.

If you think the problem is not the one described here, please share the content of your *.csproj file to take a look.

I am looking forward to your reply.

Regards,
Vesko
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.