Search code examples
visual-studio-2010web-config-transform

Add Config Transforms not adding all configurations


I'm having an issue with the "Add Config Transforms" option in Visual Studio 2010. I have an ASP.NET 4.0 web project with the following 4 configuration modes defined:

  • Debug
  • Local
  • PreProduction
  • Release

When I right click on the web.config and select "Add Config Transforms" only the following two config transforms are added:

  • Web.Debug.config
  • Web.Release.config

The "PreProduction" and "Local" files do not show up. Is there a setting that I'm missing that would cause these two files to now show up?


Solution

  • Verify that the same configurations have been defined for the project and not just the solution.