ASP.NET deployment - How to share BIN across multiple WebApp Projects?

我与影子孤独终老i 提交于 2019-11-30 20:15:40

问题


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

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.

Thanks.


回答1:


Yes, actually, you do want to deploy them individually. That's how it works.

If this truly offends you, then consider whether this common code should be in a WCF service called by all those sites.




回答2:


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.




回答3:


You could possibly try putting them in a common folder location and then change the assembly probing paths to look in that location.



来源:https://stackoverflow.com/questions/1155655/asp-net-deployment-how-to-share-bin-across-multiple-webapp-projects

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!