我是否可以修改App.config文件?
我已经建立了setupwizard.msi,但是当我在应用程序文件夹中安装该应用程序时,它已经创建了两个文件。一个App.exe和App.exe.config
是因为我通过“记住我”选项对应用程序进行身份验证以保存凭据吗?这些凭据保存在AppData中,即使它存储并从该App.exe.config中获取凭据也是如此
> <?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<sectionGroup name="userSettings"
type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="App.Properties.Settings"
type="System.Configuration.ClientSettingsSection, System,
Version=4.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089"
allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup>
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
</startup>
<connectionStrings>
<add name="DefaultConnection" connectionString="Data Source = |SQL/CE|" />
</connectionStrings>
<userSettings>
<App.Properties.Settings>
<setting name="userName" serializeAs="String">
<value />
</setting>
<setting name="userPass" serializeAs="String">
<value />
</setting>
<setting name="Remme" serializeAs="String">
<value />
</setting>
<setting name="ipAddress" serializeAs="String">
<value />
</setting>
</App.Properties.Settings>
</userSettings>
</configuration>
我绝对不需要其他文件,也无法将其保留为app.exe.config。我可以更改此文件的位置或以某种方式处理它吗?