Skip to content

Instantly share code, notes, and snippets.

@valbers
valbers / Enable-Transformations.md
Created April 5, 2018 15:57 — forked from EdCharbeneau/Enable-Transformations.md
How to enable transformations on build with Visual Studio

#Transform web.config on build

  1. Unload the project
  2. Edit .csproj
  3. Append figure 1 to the end of the file just before </Project>; v12.0 might change depending on your version of Visual Studio
  4. Save .csproj and reload
  5. Open configuration manager
  6. Add a new Configuration Name: Base. Copy settings from: Release
  7. Copy the contents of your web.config
  8. Right click Web.Config > Add Config Transformation