Node Js publish from Visual Studio 2019 stopped working. there was no update on VS or code configurations.
Error dump from temp file:
27-Nov-20 09:58:33
System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Publish.Framework.ViewModel.ProfileSelectorViewModel.CanShowRestoreAction()
at Microsoft.Publish.Framework.ViewModel.ProfileSelectorViewModel.RebuildCrudProfileCommands(IProfileVisual profile)
at Microsoft.Publish.Framework.ViewModel.ProfileSelectorViewModel.set_SelectedProfile(IProfileVisual value)
at Microsoft.Publish.Framework.ViewModel.ProfileSelectorViewModel.Initialize(ProfileSelectorUserControl view)
at Microsoft.Publish.Framework.Provider.DefaultPublishTabProvider.<CreateViewAsync>d__13.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Publish.Framework.Provider.PublishProjectDesignerTabProvider.<CreateViewAsync>d__7.MoveNext()
===================
What I tried:
- Clearing .vs, data, bin
- Clearing temp But nothing worked.
Anyway to resolve this?
Workaround: Using Deployment center local git