Allow teams to override Web.config
Install-Package DotnetConfigOverride
In Global.asax.cs
DotnetConfig.WebConfig.Override();
Directory Tree (no include Web.Override.config in project)
Add to .gitignore
Web.Override.config
In this moment, appSettings
and connectionStrings
are supported.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appSettings>
<add key="Team" value="ABC"/>
</appSettings>
<connectionStrings>
<add name="Default" connectionString="Data Source=.;Initial Catalog=DB_ABC;" providerName="System.Data.SqlClient" />
</connectionStrings>
</configuration>