471,605 Members | 1,492 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,605 software developers and data experts.

MSBuild frustration.

I am trying to edit an MSBuild project file in the Visual Studio 2005. I
tried to use the Intellisense of the editor, so I reference the xmlns
at the first line like this:

<Project DefaultTargets="DDTI.Utilities.Clean"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

When I define some custome property like this in the build file .

<PropertyGroup Condition="'$(CompileConfig)' == 'DEBUG'" >
<Test></Test>
</PropertyGroup>
It keeps giving me the following message, it's kind of annoying.

Warning 3 The element 'PropertyGroup' in namespace
'http://schemas.microsoft.com/developer/msbuild/2003' has invalid child
element 'Test' in namespace
'http://schemas.microsoft.com/developer/msbuild/2003'. List of possible
elements expected: 'Property' in namespace
'http://schemas.microsoft.com/developer/msbuild/2003'.
C:\Development\DTMap\DTMapMSBuild.proj
Is there any workaround to turn off the schema validation while keep the
intellisense available.

Thanks,
Jianwei
Feb 4 '06 #1
1 2226
You can modify the xsd file that drives this intellisense, its named
Microsoft.Build.xsd. There should be two of these files on your computer one
in the .NET Framework directory, and one in
%Microsoft Visual Studio 8%/Xml/Schemas/1033
The one used for intellisense should be the one in the VS directory. If you
add it to that file then you should get the Intellisense help you to create
the Test element under PropertyGroup. But I think the more important one for
you is the one in the .NET Framework directory, because this should be the
one that drives those warnings. I'm not 100% sure of that though.

Sayed Ibrahim Hashimi
www.sedodream.com

"Jianwei Sun" wrote:
I am trying to edit an MSBuild project file in the Visual Studio 2005. I
tried to use the Intellisense of the editor, so I reference the xmlns
at the first line like this:

<Project DefaultTargets="DDTI.Utilities.Clean"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

When I define some custome property like this in the build file .

<PropertyGroup Condition="'$(CompileConfig)' == 'DEBUG'" >
<Test></Test>
</PropertyGroup>
It keeps giving me the following message, it's kind of annoying.

Warning 3 The element 'PropertyGroup' in namespace
'http://schemas.microsoft.com/developer/msbuild/2003' has invalid child
element 'Test' in namespace
'http://schemas.microsoft.com/developer/msbuild/2003'. List of possible
elements expected: 'Property' in namespace
'http://schemas.microsoft.com/developer/msbuild/2003'.
C:\Development\DTMap\DTMapMSBuild.proj
Is there any workaround to turn off the schema validation while keep the
intellisense available.

Thanks,
Jianwei

Feb 6 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Uma Abhyankar | last post: by
4 posts views Thread by cisco | last post: by
5 posts views Thread by Al | last post: by
reply views Thread by ME | last post: by
7 posts views Thread by shapper | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by MichaelMortimer | last post: by
reply views Thread by CCCYYYY | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.