Note that there are some explanatory texts on larger screens.

plurals
  1. POModify a .Net Applications .exe.config file Settings Value via Powershell
    primarykey
    data
    text
    <p>I have a .Net console application which has an App.Config / MyApplicationConsole.exe.config file. This one contains settings set via the properties manager of VS, basically looking something like this:</p> <pre><code>&lt;?xml version="1.0"?&gt; &lt;configuration&gt; &lt;configSections&gt; &lt;sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"&gt; &lt;section name="My.Applications.Namespace.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /&gt; &lt;/sectionGroup&gt; &lt;/configSections&gt; &lt;applicationSettings&gt; &lt;My.Applications.Namespace.Properties.Settings&gt; &lt;setting name="SettingsKeyABC" serializeAs="String"&gt; &lt;value&gt;SomeOtherValue&lt;/value&gt; &lt;/setting&gt; &lt;setting name="SettingsKeyXYZ" serializeAs="String"&gt; &lt;value&gt;True&lt;/value&gt; &lt;/setting&gt; &lt;/Siemens.Med.CTE.PMP.Applications.JobExecutor.Properties.Settings&gt; &lt;/applicationSettings&gt; &lt;system.diagnostics&gt; &lt;trace&gt; &lt;listeners&gt; &lt;add name="Gibraltar" type="Gibraltar.Agent.LogListener, Gibraltar.Agent" /&gt; &lt;/listeners&gt; &lt;/trace&gt; &lt;/system.diagnostics&gt; &lt;startup&gt; &lt;supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" /&gt; &lt;/startup&gt; &lt;/configuration&gt; </code></pre> <p>Now what I want/need to do is modify the ("True") value for the "SettingsKeyXYZ" setting, preferably via powershell (as my colleague set up). Does anyone know how to do this? All I found were sample for Web.Configs which seem a tad different than the ones created by VS.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload