I'm debugging the spec, it passes if you comment this line. Otherwise, the var is still 0 even after failed msbuild call in next line.