I have a large solution with many C++ projects in Visual Studio 2015. When I load the solution, certain projects consistently fail to load. Typically they are plain old static C++ library projects.
In the output window of VS " Collection was modified; enumeration operation may not execute."
And in the solution window it shows the project is unloaded. If I reload just that project using right click context menu in the solution window the project just reloads without error.
How can I sort this out?
It is not clear what in the project file VS is having problems with. I have not been able to find better or more detailed logs. It only happens when I open the solution and only for certain projects.
So following a suggestion from the msdn forum, I deleted two directories that make up the local Visual Studio cache. That resolved the issue for me.
.vs in the solution directory
C:\Users\<My user name>\AppData\Local\Microsoft\VisualStudio\14.0\ComponentModelCache\
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With