Visual Studio 2015 – Change template for new applicationHost.config

iis-expressvisual-studio-2015

Unlike previous versions, Visual Studio 2015 places build-related files in a .vs folder alongside your solution. By default, that includes a new applicationHost.config for web applications.

As stated here, You can edit the web application .csproj/.vbproj file to include <UseGlobalApplicationHostFile>True</UseGlobalApplicationHostFile>, and then it will continue to use %userprofile%\My Documents\IISExpress\config\ApplicationHost.config

But I don't want to change every web application project file. So is there a "template" for the new applicationHost.config that Visual Studio / IIS Express creates?

Best Answer

You can edit the template that Visual Studio uses at %ProgramFiles(x86)%\IIS Express\config\templates\PersonalWebServer\applicationhost.config