Monday, March 31, 2008
« LINQ WhereIf Extension Method | Main |

I use SourceGear Vault and generally love it. Guessing the following is not directly related to Vault but rather source control in general. By default, Vault is configured to ignore the Bin folder within an ASP.NET project or Web Site.

What have I been doing for years when I need to import a vendor's DLL to my project? Yup, I copy it to my Bin folder and add a reference to it. Wrong thing to do!

That 3rd party DLL is not achieved along with the rest of my project since Vault is configured to ignore the Bin folder. (Guessing that all source control systems follow this behavior.) What should be doing instead? Create a folder within my project along the lines of AcmeLibrary and copy DLLs there. Then reference my DLLs and Visual Studio will copy them to your Bin folder when you build your project. The AcmeLibrary and its contents will be placed under source control.

Hope this saves you some future grief!

kick it on DotNetKicks.com   Monday, March 31, 2008 6:53:51 AM (Pacific Standard Time, UTC-08:00)  #    Disclaimer  |  Comments [2]  | 
Wednesday, April 02, 2008 6:31:05 AM (Pacific Standard Time, UTC-08:00)
One thing I have been doing (using Subversion) is create a 'vendor' folder in my project trunk, and put all my vendor dlls in there (usually in appropriate folders [e.g. StructureMap, RhinoMocks in my test project, etc). Not sure how SourceGear works, but it's another idea!

~L
Sunday, May 18, 2008 12:15:29 AM (Pacific Standard Time, UTC-08:00)
Great tip! I had been doing the same thing.
Name
E-mail
Home page

Comment (Some html is allowed: a@href@title, strike) where the @ means "attribute." For example, you can use <a href="" title=""> or <blockquote cite="Scott">.  

Enter the code shown (prevents robots):

Live Comment Preview