Last post Dec 22, 2007 03:54 PM by Jeev
May 08, 2007 06:15 AM|MrClyfar|LINK
I've just installed the WDP extention for VS 2005. For a current web application, I've added a new WDP and I'm trying to configure the project to exclude certain files from the build. I looked up on how to accomplish this and found examples similar to:
The problem is that when I have the above line in my wdproj file, I get the following warning:
"The element 'ItemGroup' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003' has invalid child element 'ExcludeFromBuild' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003'. List of possible elements expected: 'Item' in namespace
I also get a warning for the following line, which was auto-generated by the WDP:
"The element 'PropertyGroup' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003' has invalid child element 'SourceWebPhysicalPath' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003'. List of possible elements expected: 'Property'
in namespace 'http://schemas.microsoft.com/developer/msbuild/2003'."
I'm totally stuck on how to resolve this, if even the default code generated by the project isn't working, then how on earth can I get my own exclude stuff to work?!
Any help would be much appreciated.
May 15, 2007 09:06 PM|Rasetti|LINK
This is only get a xml schema warning, which shouldn't prevent you from deploying.
If you have a look at the Output generated, you'll see that all your excludes and similar "not recognised" items are correctly processed regardless the warning.
Hope this helps,
Dec 21, 2007 04:53 PM|RedCrystal|LINK
Any chance we can get our hands on the XML schema to import to VS 2005 to remove those warnings?
Dec 21, 2007 09:24 PM|Jeev|LINK
You can safely ignore it
Dec 22, 2007 02:47 AM|RedCrystal|LINK
I know we can safely ignore it. I do a lot of editing of the wdproj files by hand. It's nicer to know that my edits are valid by seeing an absence of blue squiggly lines, rather than wait for the 2-5 minutes (large sites) for the compilation to
finish. If the XSD happened to be available (even if it required manual installation) that'd be a Good Thing.
Dec 22, 2007 03:54 PM|Jeev|LINK
Hi RedCrystal ,
The XSD can be found here
Your visual Studio directory \Xml\Schemas\1033\MSBuild
These are the ones for the core MSBUILD files.