Web.Debug.config not working locally on Visual Studio
Edit
Lately I am working on a project which a complex build and deploy procedure. There are different settings within web.config for different environment, e.g. dev, staging, production. It is because of that I start to make use of the Web.Debug.config to wired up all the setting for testing my code on my local machine. Because of that I discovered a mis-leading / incomplete feature in Visual Studio. It turns out the Web.Debug.config will only be transform to web.config when there is a publish of the solution. A local debug run of the solution will not trigger the transformation! My approach previously was to put all the local dev testing variable in the Web.Debug.config file, and it doesn't work! So now I have to put all my local dev testing environment variable in the web.config and put the staging and production setting to the Web.Debug.config and Web.Release.config !! how NON intuitive it is !
read on : web config - ASP.NET MVC3: Debug and Release app settings not wokring - Stack Overflow
read on : web config - ASP.NET MVC3: Debug and Release app settings not wokring - Stack Overflow
Web.Debug.config not working locally on Visual Studio
Reviewed by DF
on
6:51:00 PM
Rating: