473,479 Members | 2,128 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

extracting project path in a csproj -- grrrr!!

I'm using FinalBuilder to automate our builds. We've had it working
with VS2003 for a long time, now we're upgrading to VS2005 (I'm aware
that 2008 is out now. Geroffit.)

I'm trying to extract the OutputPath from the appropriate
PropertyGroup (Debug/Release) in the csproj using XPATH. I've
discovered after much trial and error, and many inventive curses, that
it works as long as I remove the xmlns clause from the Project node
at the top, but fails otherwise. Incidentally,
http://schemas.microsoft.com/developer/msbuild/2003 doesn't appear to
exist anyway, so what the hell?

Anyone have any idea what's going on? FYI, I'm doing this very ad-hoc.
I have no real knowledge of XML internals.
Dec 13 '07 #1
1 2653
"Barfy the Wonder Camel" <go******@yahoo.cawrote in message
news:62**********************************@i12g2000 prf.googlegroups.com...
I'm using FinalBuilder to automate our builds. We've had it working
with VS2003 for a long time, now we're upgrading to VS2005 (I'm aware
that 2008 is out now. Geroffit.)

I'm trying to extract the OutputPath from the appropriate
PropertyGroup (Debug/Release) in the csproj using XPATH. I've
discovered after much trial and error, and many inventive curses, that
it works as long as I remove the xmlns clause from the Project node
at the top, but fails otherwise. Incidentally,
http://schemas.microsoft.com/developer/msbuild/2003 doesn't appear to
exist anyway, so what the hell?

Anyone have any idea what's going on? FYI, I'm doing this very ad-hoc.
I have no real knowledge of XML internals.

Take a look at this link on matching nodes in a namespace:
http://www.dpawson.co.uk/xsl/sect2/N5536.html
Especially numbers 13 and 23.
(There is no reason for there to be a file at:
http://schemas.microsoft.com/developer/msbuild/2003, namespaces are just
unique strings that differentiate node names.)
--

Joe Fawcett (MVP - XML)
http://joe.fawcett.name

Dec 16 '07 #2

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

Similar topics

3
2467
by: Dennis Wheeler | last post by:
I'm trying to find a commandline solution for switching projects. Currently I have to modify the IIS virtual directory path to the source files, and then open the solution file in .Net to be...
5
1204
by: Peter Stojkovic | last post by:
I have the following problem: I have a solution in path C:\AAA\CustomerA Now I have a second project: Then I copy everyThing to C:\AAA\CustomerB Bit inside the new project everything is...
1
9712
by: John Lee | last post by:
Hi, Here is my issue with VS.NET IDE project reference: I have a project (myproj.csproj) referencing a non-GACed strongly named assembly (comp.dll 2.0.1.0) with copy local = true; we also have...
2
1924
by: Matt | last post by:
When I tried to open an existing proj1.csproj in VS.NET 2003. It pops up a dialog saying "The project 'proj1.csproj' must be converted to the current project format. After it has been converted,...
2
1303
by: serge calderara | last post by:
Dear all, I am actually studying ASP.net and I have read in MS press book that by default, project defined within VS studio 2003 environement goes under Inetpub\wwroot folder. What I woul like...
1
1557
by: Brian Kitt | last post by:
Whenever I create a web project, a folder is created in c:\Inetpub\wwwroot for the web part of the project, but then Visual Studio also creates a folder in 'My Documents'. This works fine, but it...
1
2431
by: Brian C | last post by:
Hello all, I was wondering if there was a way to change how Visual Studio stores a new project. For example, I'd like to have the following directory structure: \src\myproject \build \vc\VC...
2
2224
by: joerozario | last post by:
I have created a windows application. Like windows search program. So I want my project link should be shown in folder right click. I have added values in the registry manually in I have got as I...
4
4165
by: Max2006 | last post by:
Hi, When I use Web Deployment Project to create a deployment image of my web site, It includes un-necessaty files such as *.csproj files. Can I disable the deployment of *.csproj files?
0
7027
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6899
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...
0
7019
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7067
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...
1
6719
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...
0
4463
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...
0
1288
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 ...
1
555
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
166
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...

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.