Today again depressed, see Orchard really learn a lot of things wow!
Web. config inside the appSettings node can directly refer to a file, before the old think of Microsoft really two, configuration node more swollen?
Essentially, each executable file's configuration file contains a portal that looks like this:
<?xml version= "1.0" encoding= "Utf-8"?>
<configuration>
<appsettings file= "Settings.config" >
</appSettings>
</configuration>
where "settings.config" is a custom config file which looks something like this:
where "settings.config" is a user profile, the contents are as follows:
<appSettings>
<add key= "Setting1" value= "This was Setting 1 from settings.config"/>
<add key= "Setting2" value= "This was Setting 2 from Settings.config"/>
<add key= "ConnectionString" value= "connectstring from Settings.confg"/>
</appSettings>
Use. NET configuration file appsettings element's file property