Visual Studio将从何处复制.vs文件夹中的applicationhost.config文件? [英] Where does Visual Studio copy the applicationhost.config file in the .vs folder from?
问题描述
Visual Studio在名为.vs的Web项目的解决方案根目录中创建一个隐藏文件夹.里面有一个带有 applicationhost.config 文件的config子文件夹.如果缺少.vs文件夹,Visual Studio将在我打开解决方案时或者在启动调试器时再次创建它.
Visual Studio creates a hidden folder in the solution root of web projects named .vs. Inside there is a config sub-folder with an applicationhost.config file. If the .vs folder is missing Visual Studio will create it again either when I open the solution or maybe when I start the debugger.
我假设此 applicationhost.config 文件是从某个默认位置复制的.我希望找到源文件并进行一些更改,以便默认情况下我的首选设置将生效.
I assume that this applicationhost.config file is being copied from some default location. I wish to find the source file and make some changes so that my preferred settings will be in effect by default.
我当前正在使用 Visual Studio 2019 16.3.7 .
Visual Studio从何处复制此文件?
Where does Visual Studio copy this file from?
推荐答案
我在PC上的以下位置找到了 applicationhost.config :
I found applicationhost.config in these locations on my PC:
- C:\ Program Files(x86)\ IIS Express \ config \ templates \ PersonalWebServer
- C:\ Program Files \ IIS Express \ config \ templates \ PersonalWebServer
- C:\ Users \%USERNAME%\ Documents \ IISExpress \ config
我系统地进行了更改,发现在我的情况下Visual Studio 2019正在从路径1复制文件.
I altered each systematically and found that in my case Visual Studio 2019 is copying the file from path 1.
这篇关于Visual Studio将从何处复制.vs文件夹中的applicationhost.config文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!