Visual Studio 在打开解决方案时创建 IIS 虚拟目录 [英] Visual Studio creating IIS virtual directories when solution opened

查看:34
本文介绍了Visual Studio 在打开解决方案时创建 IIS 虚拟目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我打开解决方案时,Visual Studio 要求在 IIS 中创建虚拟目录.这可能是因为解决方案中的项目已配置为使用 IIS 而不是 Cassini?

Visual Studio is asking to create virtual directories in IIS when I open a solution. Could this be because projects within the solution have been configured to use IIS rather than Cassini?

对话信息是:

为 Web 项目指定的本地 URI ......尚未配置.为了打开该项目,需要配置虚拟目录.您现在要创建虚拟目录吗?"

推荐答案

是的.如果 Web 项目配置为使用 IIS(在项目属性中的 Web 选项卡上 ->使用本地 IIS Web 服务器"),Visual Studio 要求定义的路径作为虚拟目录存在于 IIS 中并对应于项目在盘.如果该路径在 IIS 中不存在,Visual Studio 会主动为您创建.

Yes it is. If a web project is configured to use IIS (on the Web tab in the project properties -> "Use local IIS web server"), Visual Studio requires that the path defined exists in IIS as a virtual directory and corresponds to the project's location on disk. If the path does not exist in IIS, Visual Studio will offer to create it for you.

这篇关于Visual Studio 在打开解决方案时创建 IIS 虚拟目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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