ASP.NET部署 - 如何在多个Web应用程序项目共享BIN? [英] ASP.NET deployment - How to share BIN across multiple WebApp Projects?

查看:112
本文介绍了ASP.NET部署 - 如何在多个Web应用程序项目共享BIN?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是在IIS 7中共享多个ASP.net网站的bin文件夹的组件的最佳做法?

What is the best practice for sharing the assemblies of a bin folder across multiple ASP.net websites in IIS 7?

我有几个网站,每个稍有不同的HTML前端,但都具有相同的中间层逻辑和数据库。我不希望同样的dll redploy到每个现场众多的bin文件夹每次我做出改变。

I've got several sites, each with slightly different HTML front ends, but all with the same middle tier logic and DB. I don't want to redploy the same dlls to each of the many site's bin folders everytime I make a change.

感谢。

推荐答案

另一个选择是让你的.NET code足够聪明,以便它可以加载正确的HTML前端,基于URL。这样,你可以部署你的code到一个位置,然后让多个虚拟目录使用相同的code。

Another option is to make your .Net code smart enough so that it can load the correct HTML front end based on the URL. That way you could deploy your code to one location, then have multiple virtual directories use the same code.

这篇关于ASP.NET部署 - 如何在多个Web应用程序项目共享BIN?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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