473,718 Members | 2,162 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.microso ft.com/developer/msbuild/2003">

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

<PropertyGrou p Condition="'$(C ompileConfig)' == '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.microso ft.com/developer/msbuild/2003' has invalid child
element 'Test' in namespace
'http://schemas.microso ft.com/developer/msbuild/2003'. List of possible
elements expected: 'Property' in namespace
'http://schemas.microso ft.com/developer/msbuild/2003'.
C:\Development\ DTMap\DTMapMSBu ild.proj
Is there any workaround to turn off the schema validation while keep the
intellisense available.

Thanks,
Jianwei
Feb 4 '06 #1
1 2364
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.microso ft.com/developer/msbuild/2003">

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

<PropertyGrou p Condition="'$(C ompileConfig)' == '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.microso ft.com/developer/msbuild/2003' has invalid child
element 'Test' in namespace
'http://schemas.microso ft.com/developer/msbuild/2003'. List of possible
elements expected: 'Property' in namespace
'http://schemas.microso ft.com/developer/msbuild/2003'.
C:\Development\ DTMap\DTMapMSBu ild.proj
Is there any workaround to turn off the schema validation while keep the
intellisense available.

Thanks,
Jianwei

Feb 6 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
5834
by: Uma Abhyankar | last post by:
Hello, I am using .NET Beta1 Visual Studio. I have to invoke VCBuild through MSBuild on command prompt. I have following issues: Issue1: -------- MSBuild invokes VCBuild internally. However it invokes VCBuild without
1
2070
by: Uma Abhyankar | last post by:
Hello All, I was facing an issue with VCBuild on Beta1. Today after shifting to .NET Beta2, it looks like the issue is still not resolved :-( I have to invoke VCBuild through MSBuild on command prompt. I have following issue: Issue: -------- MSBuild can invoke VCBuild internally. However it invokes VCBuild without
4
1771
by: cisco | last post by:
could not find anything specific to this but does anyone know of msbuild has a new quick start tutorials. The only one i can find seem to be for the preview version of msbuild. Is thiis the only one out there? Appreciate it, Cisco
5
4469
by: Al | last post by:
Hi all We have created a xml file that imports a single project using the Import element. This project compiles to a class library, but has references to two other projects that are also class libraries. We are having a path reference issue for the depending projects; if the build is started in another directory than that of the imported project. (It's a simple cannot find project xyz.csproj, build fails.) If we place the xml file in...
0
1457
by: ME | last post by:
I have a need to generate both the DLL version of my application and an EXE version. I would like to build both of them with a single call "build". One of the ideas I have come up with is to fire off MSBuild in the PostBuildEvent of the project. I think it may work however I am having some command line issues with msbuild. The project I have is setup to build the DLL version of the app by default. In the project's PostBuildEvent I...
0
3585
by: ccallen | last post by:
How to print msbuild <Messageto the VS 2005 output window, from an msbuild file that is loaded into VS? After reading Don Boxs' "MSBuild for MAKEFILE converts" , I copied the snippet, for point 2, into a text file (test.csproj) and loaded the project into Visual Studio. That was cool, I could see the project and the code file (f1.txt) displayed in the Solution Explorer. After building it a few times, I wanted to see the exact order that...
3
2290
by: jrett | last post by:
I've got a source tree with over 100 projects, some depending on others and I'd like to set this up on an automated nightly build, or where devs can do private builds of the entire source tree to verify their code integration into the build before they check in. When I worked at Microsoft, we used CoreXt to do this. Does MSBuild support this sort of build management? Or should I look elsewhere like NAnt. -- Jaan
3
6836
by: Danny | last post by:
Hi I trying to master msBuild but have a problem. I have a solution that I wish to build using msbuild but want to override BeforeBuild/AfterBuild targets for each of the projects. I trying to avoid modifying the common.targets etc and the individual project .sln files and just do it within a solution proj. One method I've tried, is to create the .proj file from the .sln file using the msbuildemitsolution enviroment flag- base upon
7
2419
by: shapper | last post by:
Hello, I am working on an ASP.MET MVC Web Application with NET 3.5 in VS 2008. I need to run some extra tasks on this project build so I download MSBuild from http://msbuildtasks.tigris.org/. I installed it but no new project type shows in my VS 2008.
0
8723
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9207
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9120
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9053
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6652
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5971
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3182
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2553
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2122
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.