Quantcast
Channel: MSBuild Extension Pack
Viewing all articles
Browse latest Browse all 1211

New Post: XmlFile Class : TaskAction ="ReadElements"

$
0
0

I am having trouble understanding how this works and I am look for a example.

Currently I get the following error> error : Invalid TaskAction passed: ReadElements

 

Given:

<?xml version="1.0" encoding="UTF-8"?>

<Deployment>

 <Server></Server>

<Server></Server>

</Deployment>

 

Use:

<MSBuild.ExtensionPack.Xml.XmlFile     

File="c:\Build\deployment.xml"     

XPath="//Deployment/Server"   

 TaskAction="ReadElements"> 

    <Output ItemName="MyItems" TaskParameter="Elements"/>   

</MSBuild.ExtensionPack.Xml.XmlFile>

 

 


Viewing all articles
Browse latest Browse all 1211

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>