HighTechTalks DotNet Forums  

extracting project path in a csproj -- grrrr!!

Dotnet XML microsoft.public.dotnet.xml


Discuss extracting project path in a csproj -- grrrr!! in the Dotnet XML forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Barfy the Wonder Camel
 
Posts: n/a

Default extracting project path in a csproj -- grrrr!! - 12-13-2007 , 03:52 PM






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.

Reply With Quote
  #2  
Old   
Joe Fawcett
 
Posts: n/a

Default Re: extracting project path in a csproj -- grrrr!! - 12-16-2007 , 06:22 AM






"Barfy the Wonder Camel" <googroup (AT) yahoo (DOT) ca> wrote

Quote:
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



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.