IIS Express 配置/元数据库文件在哪里找到? [英] Where is the IIS Express configuration / metabase file found?

查看:26
本文介绍了IIS Express 配置/元数据库文件在哪里找到?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在哪里可以找到 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%documentsiisexpressconfigapplicationhost.config
%userprofile%my documentsiisexpressconfigapplicationhost.config

VS2019 更新
如果您使用的是 Visual Studio 2019+,请检查此路径:

Update for VS2019
If you're using Visual Studio 2019+ check this path:

$(solutionDir).vs{projectName}configapplicationhost.config

VS2015 的更新(来源:@Talon)
如果您使用的是 Visual Studio 2015-2017,请检查此路径:

Update for VS2015 (credit: @Talon)
If you're using Visual Studio 2015-2017 check this path:

$(solutionDir).vsconfigapplicationhost.config

在 Visual Studio 2015+ 中,您还可以通过更改 <UseGlobalApplicationHostFile>true|false</UseGlobalApplicationHostFile> 设置来配置使用哪个 applicationhost.config 文件项目文件(例如:MyProject.csproj).(来源:MSDN 论坛)

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆