I was using Visual Studio 2022 edition and it was working fine last night. When I tried to open it this morning, it gave me an error:
The operation could not be completed
I don't know what happened. I already have ran into few suggested solutions and nothing seems to work. I have tried:
closing and restarting the Visual Studio;
restarting my computer; and
deleting .suo
, which I don't have unfortunately. I must also mention that upon closing the error message, I received another message:
Value does not fall within the expected range
Just in case they're connected problem. Any ideas?
CodePudding user response:
It might be some type of corruption of files or something. Try reinstalling it to fix the files. Also make sure to turn on sync so your extensions and theme don't get lost.
CodePudding user response:
@Jimi 's answer from the comments solved this problem.
With VS closed, remove the hidden .vs folder which is inside the main folder of your Solution. Then, for each Project, delete the content of the obj folder. Open the Solution in VS, right-click the Solution in Solution Explorer and clean / rebuilt it (clean may seem redundant at this point, but there's a reason for it)