ASP.NET deployment - How to share BIN across multi

2019-02-15 22:48发布

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.

3条回答
Emotional °昔
2楼-- · 2019-02-15 23:20

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楼-- · 2019-02-15 23:28

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

查看更多
手持菜刀,她持情操
4楼-- · 2019-02-15 23:29

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.

查看更多
登录 后发表回答