Open Source .NET Development [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Open Source .NET Development [Electronic resources] - نسخه متنی

Brian Nantz

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید


Source Control Management


Anyone who has done software development for any amount of time has been saved by Source Control Management (SCM), which is sometimes referred to as Source Control or Version Control. There are two predominating SCM systems that are used in Open Source development and are Open Source developments in and of themselves. Both of these systems are widely used and well documented. For more information on SCM and how to use it, see http://www.perforce.com/perforce/bestpracticesl.

Concurrent Versioning System


Concurrent Versioning System (CVS) is used on most Open Source projects today. CVS is a client-server based application. Setting up the CVS server is very straightforward, and one feature I like best about the CVS is that its repository is file system-based. By that I mean text files and directories are the primary method of versioning used by the repository. This makes the repository very easily transported from machine to machine. CVS runs natively on Unix and Linux but also has a Windows port. The CVS server for Windows is fully functional and feature-rich. The only downfall is the attempted integration with NTLM authentication. But if you use CVS in tandem with Cygwin (http://www.cygwin.com), which brings a Unix-like environment to Windows, many other authentication methods are available. The CVS command-line client is functional but cryptic. Fortunately, there are other client programs available. The two most popular Windows-based CVS clients are WinCVS (http://www.wincvs.org) and TortoiseCVS. WinCVS is a familiar Windows Explorer-type user interface and is easily navigable.

TortoiseCVS takes a different approach, as seen in Figure 3-8. Instead of mimicking Windows Explorer, the TortoiseCVS project (http://www.tortoisecvs.org) developed a Windows shell extension for Explorer.

Figure 3-8. TortoiseCVS.

[View full size image]

CVSWeb (http://people.freebsd.org/~fenner/cvsweb/) and ViewCVS (http://viewcvs.sourceforge.net) are two Open Source products that allow your CVS repository to be browsable over the Internet. This can be useful for development teams that are far apart or for Open Source projects where you might just want to take a quick peek at the code.

Using WinCVS with Sourceforge

If you are truly interested in Open Source, once you start, you will find yourself hooked and will shortly find it necessary to use CVS to commit a change or get the "bleeding edge" stuff. Figure 3-9 shows how to set up WinCVS to check out a project from Sourceforge. Most people who set up a CVS repository also give you the information to check out the Open Source code anonymously.

Figure 3-9. WinCVS Setting Up to Check Out nAnt from Sourceforge.net.

[View full size image]

On each Sourceforge.net project's page is a CVS link that gives you the information on how to access their repository. You can also browse the repository thanks to ViewCVS.

Subversion


The creators of CVS got the opportunity that many developers never get. Many development projects I have worked on start out as a prototype and evolve into a product. In the end, I have looked back and said, "I could do that so much better now!" Subversion is the CVS creator's opportunity to start all over and do it better. Subversion adds many new features that the architecture of CVS does not allow, like versioning of the entire repository! Subversion also has a Windows client based on the TortoiseCVS idea called TortoiseSVN (http://tortoisesvn.tigris.org/). Figure 3-10 shows Tortoise CVS in action.

Figure 3-10. TortoiseSVN and the Anakrino Repository.

[View full size image]

Using Subversion

Anakrino is a very useful tool in .NET development. For more information on the project and what it does, see the description under "Other Development Tools for .NET" at the end of the chapter. Anakrino's author has made the source available to the public via a Subversion repository. Subversion can also be viewed over the Web using the WEBDAV standard.


    / 275