Closed tfabraham closed 6 years ago
[tfabraham@3/30/2014] I'm not familiar with XmlNodeToAdd as it is not a Deployment Framework task, but I can say that you need to use " instead of " in your addNodeAttrValue2.
[AhmadAbuHantash@3/31/2014] Many thanks for your reply
the issue was related to msbuild. on calling another target in another project file and passing <?xml version="1.0" encoding="utf-8"?> or <?xml version="1.0" encoding="utf-8"?> as parameter then it will remove " and pass it as following <?xml version=1.0 encoding=utf-8?>
[UnknownUser@3/31/2014]
Issue closed by tfabraham with comment Resolved but not related to Deployment Framework
Reason closed Not BTDF
I am trying to use XmlNodeToAdd to add attribute to web.config xml all attribute goes fine except one
but on deploying the project this attribute changed by removing the " (even when put " its removed). the following taken DeploymentResult.txt
%SystemDrive%\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe "Framework\Build.proj" /t:SetAttribute /p:FileToUpdate="..\web.config",nodeXPath="/... " addNodeAttr2="ResponsePrefixData",addNodeAttrValue2="<?xml version="1.0" encoding="utf-8"?>"
.... web.config : Set attribute 'ResponsePrefixData' to '<?xml version=1.0 encoding=utf-8?>' in 1 element(s) matching XPath ...
any idea how i can insert this value as attribute using BTDF <?xml version="1.0" encoding="utf-8"?>
Thanks,
This work item was migrated from CodePlex
CodePlex work item ID: '10569' Vote count: '1'