Setting Up a Shared Development Environment in MCMS 2002
Microsoft Content Management Server 2002
Microsoft Visual SourceSafe 6.0
Summary: Collaborate on building a Microsoft Content Management Server (MCMS) 2002 Web site by sharing a central build computer to store work, and using your own computer to develop and test features. Learn to set up a shared MCMS development environment using the Microsoft Visual SourceSafe source control. (5 printed pages)
Step 1: Set Up the Build Computer
Step 2: Set Up Each Developer Computer
Step 3: Create the MCMS Solution
Step 4: Configure Each Developer Computer
Step 5: Check Files In and Out from Visual SourceSafe
To collaborate on building a Microsoft Content Management Server (MCMS) 2002 Web site, developers share a central build computer to store their work, and use their own computers to develop and test new features. The build computer hosts the master copy of the source files, and runs Microsoft Visual SourceSafe and Microsoft Visual Studio .NET. The developers' client computers run MCMS 2002, Visual SourceSafe client, and Visual Studio .NET.
The source control system maintains template files and any other file-based assets used in the Web site. Developers follow standard procedures for checking files into and out of Visual SourceSafe.
The following sections describe the steps to take to set up your shared development environment in MCMS 2002.
Important You must perform the following steps in order.
The build computer hosts the master copy of the source files. To set up the build computer, you need to install the following software:
- Visual SourceSafe. For more information see Installing the Shared Database Server.
- Visual Studio .NET
- Microsoft SQL Server 2000
After you install the required software, you need to create and configure a Visual SourceSafe database and you need to create the MCMS database.
To create and configure a Visual SourceSafe database
- Using Visual SourceSafe 6.0 Admin, create a database. For more information, see Setting Up a Database.
To create the MCMS database
- Add a new database to SQL Server. For more information, see "Creating the MCMS Database and Granting Rights" in the Installation Guide, found on Product Documentation.
- Using the MCMS DCA, configure the new database for MCMS. For more information, see "Configuring the Database" in the Installation Guide, found on Product Documentation.
The developer computers are those developers use to create and edit MCMS template files and MCMS customizations. To set up each developer computer, you need to install the following software:
- Visual Studio .NET
- SQL Server Management Tools and Client Connectivity. For more information, see "To Install Client Tools Only for SQL Server 2000" in the Microsoft Knowledge Base article HOW TO: Install SQL Server 2000 - Basic Local Installation.
Important Follow the wizard instructions until you get to the Select Components page. On the Select Components page, click Management Tools and Client Connectivity.
- MCMS 2002 Server, Site Manager, and Developer Tools. For more information, see the Installation Guide, found on Product Documentation.
- Visual SourceSafe client components. For more information, see Installing the Client Programs.
After you have installed the required software, you must configure MCMS so that it uses the database on the build computer.
To configure MCMS
On each developer computer, using the MCMS DCA, set the MCMS database to the database you created on the build computer. For more information, see "Configuring the Database" in the Installation Guide, found on Product Documentation.
After you set up the build computer and developer computers, you need to create the MCMS solution in Visual Studio .NET. If you are creating custom placeholder controls or other features that you will manage in a separate project, you also create those projects now and add them to the MCMS solution.
Important Only one developer may carry out the following procedure.
To create the MCMS solution
- Using Visual Studio .NET, on your developer computer, create an MCMS Web application solution. For more information, see MCMS Projects in Visual Studio .NET.
- Optional. Create class library projects for features that will be managed in a separate project (such as custom placeholders or navigation server controls).
After you create the MCMS web application, check it in to Visual SourceSafe.
To check in the new project to Visual SourceSafe
- With the new solution open In Visual Studio .NET, on the File menu, click Source Control, and then click Add Solution to Source Control.
If the Source Control window appears with a message about Microsoft Office FrontPage Web access, click Continue.
- In the Visual SourceSafe Login dialog box, type your Visual SourceSafe credentials and click OK.
- In the Add to SourceSafe Project dialog box, in the Project box, type the name of your project, and then click OK.
If the Visual SourceSafe window appears with a message about creating a new project, click Yes.
Important The developer who performed Step 3: Create the MCMS Solution does not perform the following steps.
To be able to use the Web Author, you must create a virtual directory named cms.
To create an MCMS virtual directory
- In Internet Services Manager, create a virtual directory in your MCMS site with the attributes described in the following table.
Table 1. Attributes to create a virtual directory in an MCMS site
Attribute Do this Alias Type cms. Path Browse to MCMS Install Root\Server\IIS_CMS Permissions Select Read and Run Script.
For more information, see Creating Virtual Directories.
- Right-click the cms virtual directory, and then click Properties.
- In the Properties dialog box, on the Virtual Directory tab, click Remove, and then click OK.
Now that you have set up the shared development environment, you can check in and check out template files and files for MCMS custom features using Visual Studio .NET.
Note Always use Visual Studio .NET to check in and check out projects, rather than Visual SourceSafe, so that Visual Studio .NET can filter out user-specific files and binaries that should not be source-controlled.
To check out the solution and projects from Visual SourceSafe
- In Visual Studio .NET, on the File menu, click Source Control, and then click Open From Source Control.
- In the Create local project from SourceSafe dialog box, click your MCMS SourceSafe project, and then click OK.
- In the Browse Folder dialog box, click the folder containing the MCMS solution file, and then click OK.
You can now check out or check in template files or other files for the solution.
To check out a template file
In Solution Explorer, right-click the template file, and then click Check Out. When you are finished editing the file, and have saved it, you can check it in.
To check in a template file
In Solution Explorer, right-click the template file and then click Check In.
You and other developers can now check in or check out new or existing files for the solution using the integrated support in the Visual Studio .NET Solution Explorer.
Setting up a shared development environment takes a little more work than simply setting up separate developer computers, but gives you several advantages:
- Many developers can work on the same project at the same time.
- The source control system maintains version histories for your files, which means that if you unintentionally delete or change a file, you can revert to a previous version.
- Developers can keep a "known good" copy of their work on the central computer, and use their own computers to develop and test new features.
Microsoft Content Management Server on MSDN
Visual SourceSafe 6.0