Web应用程序的结构和部署 [英] Web Application Structure and Deployment

查看:161
本文介绍了Web应用程序的结构和部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的产品是一个ASP.Net Web应用程序。目前,我们使用网站项目在Visual Studio中,但一直在寻找到使用Web应用程序项目相当长的一段时间。我目前正在研究他们,使我们能够有希望改善我们的部署过程。

Our product is an ASP.Net web application. Currently, we use Web Site Projects in Visual Studio, but have been looking into using Web Application Projects for quite some time. I am currently researching them so that we can hopefully improve our deployment process.

我们有一个不同的客户端之间共享,共同基础的网站,然后我们扩展了与客户网站项目客户特定的功能。客户项目扩展基地,因此,依赖于它的内容。要构建完整的产品,我们首先部署基地的网站,然后从客户端项目内容覆盖它。

We have a base web site that is shared and common between different clients, and then we extend that with client-specific functionality in client Web Site Projects. The client projects extend base, and therefore rely on its contents. To build the full product, we first deploy the base web site, and then overlay it with the content from the client project.

在看着在Visual Studio转换为Web应用程序项目,我们希望能够打造基地项目,然后创建客户端项目,并成立了引用基地。这种结构似乎工作正常,但是当我们试图部署使用MSDeploy客户端项目中的应用,只有从基地网站上的DLL被公布。这是罚款,有些事,引用编译code是有用的,但也有其他物品,如图像,JS网页,HTM等仍然是客户端应用程序功能所需来源。我们需要的不光编译code多从我们的基地网站。

In looking at converting to Web Application Projects in Visual Studio, we were hoping to be able to create the base project, then create client projects and set up references to base. This structure seems to work OK, but when we are attempting to deploy the application from the client project using MSDeploy, only the dll from the base web site is being published. This is fine for some things, referencing the compiled code is useful, but there are other items like images, js pages, htm, etc that is still source that is required for the client application to function. We need more than the compiled code from our base web site.

这一切都这样说,我可以在这里想到的几个选项:

That all being said, I can think of a few options here:


  1. 继续2个步骤进行部署。首先,基地的网站,然后在客户端的网站建立完整的产品。

  2. 修改部署过程中所需的源文件从基地项目复制

  3. 重新设计我们的模型,以支持以不同的方式在此基础 - 客户关系。不太清楚如何做到这一点的工作,并且将是最可行的选择。

  4. ??

有没有办法,我缺少一个不同的选项?我做得不对,我建立我的项目的方式?是否有更使Web应用程序中引用共享之外编译code其他Web应用程序?如果是这样的话,为什么不直接使用共享的类库?或者,也许我缺少的MS部署过程中的东西吗?

Is there a different option that I am missing? Am I doing something wrong with the way I am setting up my projects? Is there more to making a Web Application reference another Web Application beyond sharing compiled code? If that's the case, why wouldn't you just use a shared class library? Or maybe I am missing something with the MS Deploy process?

我打开的建议在这里,因为我觉得我失去了一些东西。我不认为我们对我们的Web应用程序的模式过于独特。

I am open to suggestions here as I feel like I am missing something. I don't think our model for our web applications is too unique.

更新:双部署过程中的工作,但感觉有点kludgey。任何其他输入?

Update: The dual-deploy process does work, but feels a little kludgey. Any other input?

推荐答案

通过使用装配WebResource可以添加CSS / JS /其他一些文件作为参考与code也就是说,你的基地项目的DLL一起。

By using assembly WebResource you can Add CSS/JS/Some other File as Reference along with the Code i.e, your Base Project DLL.

如果你可以在你的基地项目添加此WebResource是正确的,然后通过下面的链接。

If am right you can Add this WebResource in your base project then go through the below link.

http://support.microsoft.com/kb/910442

像这样,大多数第三方工具将访问他们的CSS和JS文件。

Like this way, most of the third party tools will access their CSS and JS files.

试试这个。希望这将有助于。

Try this. Hope it will help.

这篇关于Web应用程序的结构和部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆