有这样的事吗?
我在同一个解决方案中有两个项目。
当我在 Visual Studio 中运行该解决方案时,会启动两个单独的 localhost 实例。
项目 foo 位于 http://localhost:3091
,
项目栏位于 http://localhost:3094
我想访问 foo 中的项目 bar,例如: http://localhost:3091/bar/
从我对区域的研究来看,我似乎必须将 bar 项目重新创建为 foo 项目中的一个区域。
有没有办法做到这一点,例如使用虚拟区域,而无需在区域内重新创建?
这可能吗?如果不可能,实现此目的的正确方法是什么?
Is there such a thing?
I have two projects within the same solution.
When I run the solution within Visual Studio two separate instances of localhost are launched.
project foo is available at http://localhost:3091
and
project bar is available at http://localhost:3094
I would like to have access to project bar within foo for example: http://localhost:3091/bar/
From my research on areas it seems like I would have to recreate the bar project as an area within the foo project.
Is there a way to do this for example with a Virtual Area without having to recreate within an area?
Is this possible and, if not, what is the correct way to accomplish this?
发布评论
评论(1)
您需要做的是将这些 Web 项目托管在本地 IIS 中。您需要有 http://localhost/proj1 和 http://localhost/proj2 和 http://localhost/proj1/bar 。使用区域需要归结为架构决策。听起来也许保留这两个项目是值得的。只需在本地 IIS 下运行它们,更改每个项目中的属性页面即可反映这一点。
直接回答你的问题,不。我不知道任何存在的东西,也不知道存在这样的东西的任何计划。
What you are needing to do is host these web projects in local IIS. You need to have http://localhost/proj1 and http://localhost/proj2 and http://localhost/proj1/bar. Using areas needs to come down to an architecture decision. It sounds like perhaps keepthing these two projects would be desired. Just run them under local IIS, change the properties page in each project to reflect that.
To directly address your question, No. I am not aware of anything that exists and not aware of any plans for such a thing to exist.