在 Visual Studio (2008) 中,我可以作为 Web 根目录启动网站调试会话吗?

发布于 2024-07-16 19:32:22 字数 305 浏览 5 评论 0原文

我的解决方案中有一个网站,假设它位于名为 /Solution/Website1 的文件夹中。 当我在 Visual Studio 中调试它时,它将显示为 http://localhost:someport/Website1。 我希望它以 http://localhost:someport 开头。 这可能吗?

I have a website in my solution, let's assume it is in a folder called /Solution/Website1.
When I debug it in Visual Studio, it will come up as http://localhost:someport/Website1.
I want it to start as http://localhost:someport. Is this possible?

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

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

发布评论

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

评论(2

ゃ懵逼小萝莉 2024-07-23 19:32:22

如果您单击 Website1 项目,然后转到属性窗口 (F4),您应该会在此处看到虚拟路径 的属性,尝试将其设置为“/”

网站属性
(来源:bendewey.com

If you click on the Website1 Project then go to the Properties Window(F4) you should see a property here for Virtual path try setting that to "/"

Website Properties
(source: bendewey.com)

我也只是我 2024-07-23 19:32:22

如果您使用的是 Visual Studio 2008:

在解决方案资源管理器中右键单击项目标题。 单击属性。 转到“Web”选项卡,将有一个“服务器”部分,您可以在其中指定端口。

If you are using Visual Studio 2008:

R-Click on the project heading in the Solution Explorer. Click Properties. Go to the Web tab, there will be a Servers section which will alow you to specify the port.

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