Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] Third Party Tools (https://www.kinook.com/Forum/forumdisplay.php?f=3)
-   -   Adding elements to a csproj? (https://www.kinook.com/Forum/showthread.php?t=4515)

jdavidi 06-16-2010 12:22 PM

Adding elements to a csproj?
 
1 Attachment(s)
Greetings!

We're attempting to leverage Visual Build's read/write XML capabilities to aid in a large scale csproj file update. Essentially, we're looking to specify the Target Platform to be x86 for all current build configurations (this is a change from its default of AnyCPU).

This involves the addition of the following element to each of the nodes that are concerned with build configurations:

x86

The attached bld file I believe is correctly querying out the 2 nodes in the sample csproj file correctly, and it adds an almost-correct node,
x86

to the first of these 2 Property groups.

I'm unsure of :

a) if a loop is needed, the syntax for the write XML step to go after the one particular node in turn (or can the Update All Matching Nodes property be used instead of a loop?)

b) why xmlns="" is getting added. I presume this is due to the XPath expression (of which I'm also new to).

Thanks for any help!

--jdavidi

kinook 06-17-2010 08:57 AM

1 Attachment(s)
See attached.

jdavidi 06-17-2010 09:04 AM

Whew...I bow to the masters. Thanks a million!


All times are GMT -5. The time now is 11:58 AM.


Copyright © 1999-2023 Kinook Software, Inc.