Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Methods of managing source code

I've written a fair amount of software over recent years, most of which all tend to share one or more common libraries. (The most common library, being one that I use for calling SQL stored procedures and returning arrays of objects)

I'm not happy with the way I manage the libraries, and I'm looking for suggestions to improve the way I work.

The first time I created what is now a shared library, I added the library as a separate class library project within the solution.

Now, when I start a new solution and I know I'm going to need a library I already have, I will go and find the library's project and copy the files into the new solution.

This leaves me with several copies of the the same library project dotted around my filesystem (and the SVN server), and it just doesn't feel right.

Is there a better way of working, so that I only have one master copy of this library that all the solutions share, rather than each solution having its own copy of the library project?

like image 283
Bryan Avatar asked Feb 28 '10 12:02

Bryan


People also ask

Which is the source code management tool?

A source code management system is a software tool (e.g., Bitbucket, IBM Rational Clearcase or open source tools such as Github and Apache Subversion) that coordinate a software development team's coding work. It may also be called a “version control system” or a “source control system.”

Is Git a source code management tool?

VCS are sometimes known as SCM (Source Code Management) tools or RCS (Revision Control System). One of the most popular VCS tools in use today is called Git. Git is a Distributed VCS, a category known as DVCS, more on that later. Like many of the most popular VCS systems available today, Git is free and open source.

What is source control Strategy?

Source control is the process of finding sources of contamination, then stopping or reducing them before they reach the Lower Duwamish Waterway (LDW). We must make sure that sources of contamination to the LDW are sufficiently controlled before in-waterway cleanup begins.


1 Answers

Just build the library once, and reference the compiled binary from your project that needs to use it.

In visual studio, right click on the project and click "add reference", then choose the "browse" tab and locate your libraries binary.

(You will obviously need to distribute the library assembly along with your application)

like image 112
Simon P Stevens Avatar answered Oct 13 '22 00:10

Simon P Stevens