Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / IDE / February 2006

Tip: Looking for answers? Try searching our database.

Is there a way to turn off the schema validation but keep the intellisense in xml editing.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John Sun - 05 Feb 2006 00:32 GMT
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'.

Is there any workaround to turn off the schema validation while keep the
intellisense available.

Thanks,
Jianwei
Tejal [MSFT] - 17 Feb 2006 01:01 GMT
There is no direct way to turn off validation. If you selected "Project"
element and chose "Goto definition", the editor will open the schema
definition for Project.

I am not sure why you would bind to a schema and still want to generate
content that does not validate as per the schema.

Note that while I don't recommend this, you could modify the "Project"
definition to allow "any" content. If you modify Microsoft.Build.Core.xsd but
don't SAVE the file, the editor will work with the modified schema open in VS
and not report errors. Once you close the schema without modification, the
editor will use the old schema cache version and the errors will show up
again.

> 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
[quoted text clipped - 23 lines]
> Thanks,
> Jianwei

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.