Well Guys..I have same problem. I want to override web.config at compile time and source control isn't a problem. You can easily exclude file from source control but it will stay as a project file..
Open <projectname>.csproj.vspscc:
"NUMBER_OF_EXCLUDED_FILES" = "1"
"EXCLUDED_FILE0" = "web.config"
Then i use this macros:
if exist "$(ProjectDir)Web.$(ConfigurationName).config" (copy "$(ProjectDir)Web.$(ConfigurationName).config" "$(ProjectDir)Web.config").
BUT i want to use much more effective config transformation then to just copy one 3 files into one. It needs to stay 3 different configurations.
So is there any way to transform config file using msbuild on debuging?
None
0 Points
1 Post
Re: web.config transformations on build/debug
Mar 19, 2010 09:34 AM|Denis.Agarev|LINK
Well Guys..I have same problem. I want to override web.config at compile time and source control isn't a problem. You can easily exclude file from source control but it will stay as a project file..
Open <projectname>.csproj.vspscc:
"NUMBER_OF_EXCLUDED_FILES" = "1"
"EXCLUDED_FILE0" = "web.config"
Then i use this macros:
if exist "$(ProjectDir)Web.$(ConfigurationName).config" (copy "$(ProjectDir)Web.$(ConfigurationName).config" "$(ProjectDir)Web.config").
BUT i want to use much more effective config transformation then to just copy one 3 files into one. It needs to stay 3 different configurations.
So is there any way to transform config file using msbuild on debuging?