Managing 3rd Party References in Team System

Last post 09-15-2008 1:33 PM by shados. 6 replies.

Sort Posts:

  • Managing 3rd Party References in Team System

    09-12-2008, 3:57 PM
    • Member
      66 point Member
    • bechbd
    • Member since 02-14-2008, 5:38 PM
    • Posts 31

    How does everyone manage there 3rd party references in VSTS Source Control?  What do you guys do with all references to IG/telerik controls?  Do you install them all on each developer's machine and hope that they are set up identically?  Do you copy them all to a single directory and then link them to that directory? 

  • Re: Managing 3rd Party References in Team System

    09-12-2008, 4:27 PM
    • Star
      12,126 point Star
    • shados
    • Member since 07-07-2006, 7:24 PM
    • Posts 2,202

    Put them in the GAC. Simple as that.

    For cases where its not possible (very, very rare, and usually shows that there's an issue with the way the project is setup and someone needs to get slapped, but sometimes no amount of slapping helps), we map a network drive to a local directory, so that no matter which directory people put their DLLs in, its all the same drive letter, and reference to that. Have to tweak up permissions though (but i think with 2008 SP1 thats not required anymore?)

  • Re: Managing 3rd Party References in Team System

    09-12-2008, 6:26 PM
    • All-Star
      62,769 point All-Star
    • TATWORTH
    • Member since 02-04-2003, 1:34 PM
    • England
    • Posts 12,247
    • TrustedFriends-MVPs

     If the install puts the components in the GAC, then fine. The GAC can handle multiple versions.

    I am working on a set of TFS solutions - our common components may well be strong-named so they be loaded to the GAC instead of being loaded to a network share.

    Don't forget to click "Mark as Answer" on the post that helped you.
    This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
  • Re: Managing 3rd Party References in Team System

    09-15-2008, 1:12 PM
    • Member
      66 point Member
    • bechbd
    • Member since 02-14-2008, 5:38 PM
    • Posts 31

    How do you add references if the file is in the GAC since you cannot add a reference to a file in the GAC?

  • Re: Managing 3rd Party References in Team System

    09-15-2008, 1:16 PM
    • Star
      12,126 point Star
    • shados
    • Member since 07-07-2006, 7:24 PM
    • Posts 2,202

    You don't need to add the reference. The person who originally need that reference does so. Then everyone else puts the DLLs in the GAC. Apps always look in the GAC -first-, then try to resolve the reference locally on disk... since it finds it in the GAC, it will never try to look for it elsewhere.

    The original person will have to have the assembly on disk normally to -add- the reference, but thats the only time it will be required. After that, they just checkin the project files, and everyone who has the assemblies in the GAC will not have any problem.

  • Re: Managing 3rd Party References in Team System

    09-15-2008, 1:30 PM
    • Member
      66 point Member
    • bechbd
    • Member since 02-14-2008, 5:38 PM
    • Posts 31

    But when I checkin the file to source control and someone does get latest this will cause an error in there project because the reference file does not exist in that location.

  • Re: Managing 3rd Party References in Team System

    09-15-2008, 1:33 PM
    • Star
      12,126 point Star
    • shados
    • Member since 07-07-2006, 7:24 PM
    • Posts 2,202
    No, it won't cause an error if they have it in the GAC. The app will always look for the GAC -first-, if it doesn't find it there, THEN it will look on the location, and if its not there, it will complain. If its in the GAC it will work fine. You can even mix and match and have part of your team having the DLLs locally (as long as its all in the same place) and other people having it in the GAC, working on the same project. Works fine (we actually do that here...for better or worse. Probably worse.)
Page 1 of 1 (7 items)
Microsoft Communities