简体   繁体   English

在同一解决方案中部署多个项目

[英]Deploying Multiple Projects in Same Solution

I have a solution that contains Web , Admin , couple of class and data access projects. 我有一个包含WebAdmin ,几个类和数据访问项目的解决方案。 Main project is Web . 主要项目是Web I am using Admin project as area under Web . 我正在使用Admin项目作为Web下的区域。 Admin project's physical folder is under Web /Administration folder. Admin项目的物理文件夹位于Web / Administration文件夹下。 But when i try to publish Web project, it publishes Web project and add other data access or class projects as dlls to bin folder, but neither Admin project being published nor it's dll being added to bin folder. 但是,当我尝试发布Web项目时,它会发布Web项目并将其他数据访问或类项目作为dll添加到bin文件夹中,但是既不会发布Admin项目,也不会将dll添加到bin文件夹中。

Solution
--- Data (Library)
--- Service (Library)
--- Admin (Area) *MVC Web*
--- Web (Main) *MVC Web*
--- Framework (Library)

What am i missing here? 我在这里想念什么?

PS: Please tell me if you need more info to help. PS:请告诉我是否需要更多信息以帮助您。 I am really desperate here. 我在这里真是绝望。

Web is a separate web application, so if you want to publish that one too, you'll have to publish it separately. Web是一个单独的Web应用程序,因此,如果您也想发布该应用程序,则必须单独发布它。 The only way you could include it as a .dll in the bin folder of Web is if you'd include it as a reference to the Web project. 可以将它作为.dll包含在Web的bin文件夹中的唯一方法是,将其作为对Web项目的引用。 But then it would just be used as a class library, not as a separate web application. 但随后它将仅用作类库,而不用作单独的Web应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM