打开解决方案时 Visual Studio 创建 IIS 虚拟目录

发布于 2024-09-06 13:55:43 字数 179 浏览 4 评论 0原文

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

对话框消息为:

“为 Web 项目指定的本地 URI ... 尚未配置。为了打开此项目,需要配置虚拟目录。您想立即创建虚拟目录吗? ?”

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?

The dialog message is:

"The local URI ... specified for Web project ... has not been configured. In order to open this project the virtual directory needs to be configured. Would you like to create the virtual directory now?"

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一直在等你来 2024-09-13 13:55:44

是的。如果 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文