AlexZhidkov / BedfordHarbourBOM

Bedford Harbour Engineering bill of materials.
5 stars 10 forks source link

appconfig transform for dev, prod and CI eviroment #7

Closed AlexZhidkov closed 9 years ago

AlexZhidkov commented 9 years ago

Need to change connection string for diferent enviroments See: https://visualstudiogallery.msdn.microsoft.com/579d3a78-3bdd-497c-bc21-aa6e6abbc859 https://www.nuget.org/packages/SlowCheetah/ https://mitasoft.wordpress.com/2011/09/28/multipleappconfig/

AlexZhidkov commented 9 years ago

Should try to use Code-based Configuration, Preprocessor Directives. Update Appveyor to build INTEGRATION configuration. Create INTEGRATION build configuration for solution and set connection string for Appveyor SQL Server. Set different database names for debug (test) and release (production).

https://msdn.microsoft.com/en-au/data/jj680699#moving https://msdn.microsoft.com/en-au/data/jj556606.aspx http://www.entityframeworktutorial.net/EntityFramework6/code-based-configuration.aspx

https://msdn.microsoft.com/en-us/library/4y6tbswk.aspx

AlexZhidkov commented 9 years ago

Done using pre test script to rename App.config.ci to App.config on CI environment