Getting lots of warnings when building with targets in Visual Studio 2010

Info from [dead link]...

You can safely ignore this warning. So does MSBuild validate your project files against the schema? Yes it does, but I wasn't sure just how it was accomplished, so I fired off an email to Buck Hodges. He was nice enough to pass it by an as-yet-unnamed-dev on the MSBuild team. The dev stated that

"...MSBuild does try to validate against the schema. However, the validation is done at runtime by our code rather than loading the [project] file using a validate reader with the xsd (mainly for perf reasons). MSBuild should fail any projects which don't adhere to the schema."

So there you have it. The schema is enforced while still allowing you to customize and extend the MSBuild project file to fit your needs.


I had this problem too. After some googling, found a suggestion to close all the editor windows in VS, and then rebuild.

Worked for me.