Don't use the <appSettings>
section. 打开 设定值 page of the project 属性 and add the 设定 there. You can then access them via Properties.Settings.Default.PasswordMaxLength
, etc. They will still be stored in the config file so you can still edit them after deployment if you want.