Skip to content

giansalex/DotnetConfigOverride

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Config Override

Build status Nuget

Allow teams to override Web.config

Install

Install-Package DotnetConfigOverride

Usage

In Global.asax.cs

DotnetConfig.WebConfig.Override();

Directory Tree (no include Web.Override.config in project)

Directory Tree

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>

Releases

No releases published

Packages

 
 
 

Languages