You can do the following in web.config:
<configuration>Then, create a file called user.config in the same folder as web.config, and paste the following code. Notice that there is no <configuration> tag:
<appsettings file="user.config">
<add key="Key" value="Value" >
</appsettings>
</configuration>
<appsettings>
<add key="Key" value="Override value" >
<appsettings>
Do not add the user.config file to the project. If there is no user.config in the same folder, then the web.config settings are used.
MSDN:Web Projects Source Control Integration In VisualStudioNET
No comments:
Post a Comment