与以前的版本不同,Visual Studio 2015 places build-related files in a .vs folder alongside your solution . 默认情况下,它包括用于Web应用程序的新applicationHost.config .
如here所述,您可以编辑Web应用程序.csproj / .vbproj文件以包含 <UseGlobalApplicationHostFile>True</UseGlobalApplicationHostFile>
,然后它将继续使用%userprofile%\ My Documents \ IISExpress \ config \ ApplicationHost.config
但我不想更改每个Web应用程序项目文件 . 那么Visual Studio / IIS Express创建的新applicationHost.config是否有“模板”?
1 回答
您可以在%ProgramFiles(x86)%\ IIS Express \ config \ templates \ PersonalWebServer \ applicationhost.config中编辑Visual Studio使用的模板