visual-studio-2010visual-studiovisual-studio-2008visual-build-professional

How to fix "Root element is missing." when doing a Visual Studio (VS) Build?


How to fix "Root element is missing." when doing a Visual Studio (VS) Build?

Any idea what file I should look at in my solution?

Actually, I am getting this error message inside of "Visual Build Pro" when using using the "Make VS 2008" command. This command works just fine when building other solutions (like about 20) and I am not really sure why mine is getting the error.

Any help would be very much appreciated. :)

I am using VS 2008 and Visual Build Pro 6.7.


Solution

  • Make sure any XML file (or any file that would be interpreted as an XML file by visual studio) has a correct XML structure - that is, one root element (with any name, I have use rootElement in my example):

    <?xml version="1.0"?> 
    <rootElement>
     ...
    </rootElement>