I had a similar issue, and for some strange reason, renaming the solution file (.sln) to something else resolved the issue.
I haven't figured out why though.
Edit: Please have a look at the other answers before trying this one out since there might be one that suits your problem more specifically. The answer above solved an issue that was caused by something that normally doesn't happen, and can't really be reproduced, whereas the answers below are caused by something specific.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…