In Visual Studio 2022 I was trying to add a Nuget package using the package manager, but I was getting an error User canceled out of save dialog (Exception from HRESULT: 0x8004000C (OLE_E_PROMPTSAVECANCELLED)). Here is a simple way to solve this issue.
Problem
When I try to install a NuGet package for example coverlet.msbuild in my case, I was facing the issue User canceled out of save dialog (Exception from HRESULT: 0x8004000C (OLE_E_PROMPTSAVECANCELLED)). Issue detail was not understandable and there was no clue why this issue was occurring. It looked like the issue is with Visual Studio 2022 (in my case).
Solution
Before trying to do anything else I thought of restart the Visual Studio once and checking. Also if we can run the Visual Studio with Administrator privilege that can solve the major issues (related to Visual Studio). As shown in the below image, I ran Visual Studio 2022 as Administrator and it solved my problem.
Video Tutorial
Summary
This kind of issue usually can be resolved to restart Visual Studio, but if we use administrator privileges it will be more effective. So whenever you get unusual issues like this, we can give them a try like this. But your issue did not solve with this, please comment and also solution which worked for you, that will help other people who read this post.