473,725 Members | 2,295 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 2365
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
2071
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
4470
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
1458
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
2291
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
6837
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
2420
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.
1
9179
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
8099
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6702
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
6011
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();...
0
4519
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4784
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3228
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
2637
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2157
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.