Click here to Skip to main content
15,867,453 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
OK was wondering if someone can offer advice, point me in the right direction:

We currently use a DLL file across majority of our sites, we currently operate a development and production versions of each site. We develop code in our DLL and then reference that in the website, and access it through code behind files.

When we add something to the DLL (new feature for a website) we develop it, and compile it using TFS (Team Foundation Server) where the changes are merged with other developers changes. We then replace the DLL reference for that website, with the newly compiled one.

This means that some websites have different versions of the DLL as those features are not needed, until they get updated, and just don't access those modules.

Now we're building more websites that are "clones" of our blueprint (original site). But obviously we dont wish to have to go through each website and add / update the DLL when something changes on the orginal. I was searching and saw usage of the GAC (Global Assembly Cache), but obv problem i assume with this is that ALL website will use this (both dev and production) so bug fixing would not be an option, and would bring down both versions of sites, if problem with the DLL..

Any ideas, sorry for the long story.
Posted

1 solution

There is a term called publisher policy in .Net. This would allow you to allow put a new version of the dll and allow users to use the dll. Msdn link on this topic - http://msdn.microsoft.com/en-us/library/dz32563a(v=vs.110).aspx[^].
 
Share this answer
 
Comments
Grant Weatherston 31-Mar-14 9:16am    
so i could say that some sites use this version (development) and some use the production dll.. and then update the dll with latest and it will update on all dev or production sites

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900