Visual Studio doesn't compile? A remedy

Strangely enough, Visual Studio did not compile my own project. The locked folder was 'obj'. I looked for the cause in various way...