Closed AlexZhidkov closed 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
Done using pre test script to rename App.config.ci to App.config on CI environment
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/