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()