在哪里可以找到IIS Express配置/元数据库文件? [英] Where is the IIS Express configuration / metabase file found?
问题描述
在哪里可以找到IIS Express配置/元数据库文件?
Where can the IIS Express configuration / metabase file be found?
推荐答案
配置文件称为 applicationhost.config . 它存储在这里:
The configuration file is called applicationhost.config. It's stored here:
我的文档> IIS Express>配置
My Documents > IIS Express > config
通常(但并非总是),这些路径之一会起作用
usually, but not always, one of these paths will work
%userprofile%\documents\iisexpress\config\applicationhost.config
%userprofile%\my documents\iisexpress\config\applicationhost.config
VS2019更新
如果您使用的是Visual Studio 2019+,请检查以下路径:
Update for VS2019
If you're using Visual Studio 2019+ check this path:
$(solutionDir)\.vs\{projectName}\config\applicationhost.config
VS2015的更新(信用:@Talon)
如果您使用的是Visual Studio 2015-2017,请检查以下路径:
Update for VS2015 (credit: @Talon)
If you're using Visual Studio 2015-2017 check this path:
$(solutionDir)\.vs\config\applicationhost.config
在Visual Studio 2015+中,您还可以通过更改项目文件中的<UseGlobalApplicationHostFile>true|false</UseGlobalApplicationHostFile>
设置(例如MyProject.csproj)来配置使用哪个 applicationhost.config 文件. (来源:
In Visual Studio 2015+ you can also configure which applicationhost.config file is used by altering the <UseGlobalApplicationHostFile>true|false</UseGlobalApplicationHostFile>
setting in the project file (eg: MyProject.csproj). (source: MSDN forum)
这篇关于在哪里可以找到IIS Express配置/元数据库文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!