I have some key/value config values in a .Net app.config file
<configuration>
<appSettings>
<add key="keyname" value="stringval" />
which I want to add or modify as part of a script after download. What’s the easiest way to do this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I found one option is to use Powershell. You can get things done with a pretty short script.
The second line modifies the ‘value’ attribute of the xml element such as in the original question.
I do think there’s going to be plentry of other good answers, so keep them coming – not everyone will prefer Powershell as the solution.