更改 VS2008 项目上的默认 Webdev.Webserver 物理路径

发布于 2024-08-03 05:44:29 字数 298 浏览 2 评论 0原文

我想我已经见过一次这样做了,但经过长时间的谷歌搜索/必应会话后我再也找不到它了!

我想创建一个新的 ASP.NET MVC 项目,然后在该项目内创建一个文件夹“Web”,并将所有“Web 相关”文件移动到该文件夹​​内。

问题是,在创建此文件夹结构时,我不能简单地按“F5”来启动 Webdev.Webserver,因为我的应用程序的“物理路径”仍然指向我的项目根文件夹。

在项目设置中,我找到了开发服务器的配置,例如,我可以在其中更改端口,但没有指定“物理路径”的选项。

有办法做到这一点吗?

谢谢!

I think I've seen this done once, but I cannot find it again after a long Googling/Binging session!

I'd like to create a new ASP.NET MVC project, then create a folder "Web" inside the project, and move all the "web-related" files to inside this folder.

The problem is that when creating this folder structure, I cannot simply press "F5" to start the Webdev.Webserver, because the "physical path" of my application is still pointing to my project root folder.

In the project settings, I've found the configurations for the development server, where I can change the port, for example, but there's no option to specify the "physical path".

Is there a way to do this?

Thanks!

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

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

发布评论

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

评论(1

听,心雨的声音 2024-08-10 05:44:29

如果您尝试将 Web 相关文件与域相关文件分开,那么最好的办法就是在同一解决方案中创建单独的项目。

假设您创建一个商店解决方案。然后,您可以创建名为 Store.Web、Store.Domain、Store.Test 等的不同项目。

If you are trying to separate Web-related files from, say, Domain-related files, the best you have to do is to created separate projects inside the same solution.

Let's say you create a Store solution. You could then create different projects called Store.Web, Store.Domain, Store.Test, etc.

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