In Visual Studio 2017 v15.7.1 I am getting the following error window when trying to load one of my projects:
And when I go to the path specified, inside the te
I want to share a shell script that recursively removes bin
and obj
directories from the current directory
Navigate to the root directory of your solution via git bash
or wsl
Run
find . -type d \( -name bin -o -name obj \) -exec rm -r "{}" \;
Enjoy!
I found that you need to do two steps to resolve this issue:
.vs
folder at the solution level.bin
and obj
folders in all projects within the solution.I encountered the issue in Visual Studio 2017 v15.7.4 and the affected project/solution was created in v15.7.4, so it can occur without upgrading to a new version of Visual Studio.
Try deleting bin and obj folders in all projects of that solution.
Probably those folders were having old files generated by some older version of visual studio, which are not compatible with new version of visual studio.