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

查看:630
本文介绍了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天全站免登陆