Visual InterDev

      

Sometimes it takes more than a single developer to create and maintain a Web application. When you work with a Web project, the master Web application is stored on a master Web server. When you work in a team taking advantage of Visual InterDev's developer isolation feature, individual team members work in local mode, with a local copy of the master application. This enables multiple developers to access the same master Web application from their local Web projects.

In addition to working in local mode, to facilitate team-based Web application development, you can use the built-in source control features of Visual InterDev.

In order to work with multiple developers on a single Web application, you'll need the following.

Requirement For more information, see
A Web server Project Architecture
A master Web application and a Web project in local mode Working Locally
Source control (optional) Source Control

In this walkthrough, the following scenarios are discussed:

  • Using Source Control Features of Visual InterDev
    • Creating a Master Web Application

    • Sharing Web Application Files on the Master Web Server

  • Controlling Sources with Microsoft Visual SourceSafe

Using Source Control Features of Visual InterDev

Visual InterDev's built-in source control features allow multiple developers to work on the same files at the same time. When there are conflicts between different versions of the file, Visual InterDev's source control helps you merge the differences.

Visual InterDev allows multiple developers to create their own unique local Web projects that access the same master Web application, which resides on a master Web server. Each developer is able to get working copies of files, edit them, and then update the master server.

If you have a copy of MicrosoftĀ® Visual SourceSafeā„¢, you can use that to control your sources instead of Visual InterDev's built-in source control features. Visual SourceSafe is discussed later in this topic under Controlling Sources with Microsoft Visual SourceSafe.

Creating a Master Web Application

You can create a master Web application on the master Web server and then share it with other developers on your development team.

To create a master Web application

  1. From the File menu, choose New Project. The New Project dialog box appears.

  2. On the New tab, choose Visual InterDev Projects from the left pane and then select New Web Project from the right pane.

  3. In the Name text box, enter a name for the Web project.

  4. In the Location box, enter a location on your computer for the new local project.

    Note   The name and location settings are for your local project only. These settings are not saved to the server and do not affect the name of the Web application or the Web site.

  5. Click Open.

    The Web Project Wizard appears.

    Step 1:   Specify a server and mode

    Specify the name of your master Web server and select Local mode. Local mode is typically the preferred mode for each developer working in a multi-developer environment. This allows the developer to edit and test files independently from the master Web application.

    Step 2:   Specify your Web

    Select Create a new Web application and type in a name.

    Step 3:   Apply a layout

    It is not necessary to use a layout. If you want, you can select <none> now and apply a layout at a later time.

    Step 4:   Apply a theme

    It is not necessary to use a theme. If you want, you can select <none> now and apply a theme at a later time.

  6. Click Finish.

Visual InterDev simultaneously creates the new Web application on the master Web server and a new local project on your machine. After the new project is created, you see it displayed in the Project Explorer in your solution.

You are now able to use the commands on the Project menu to add HTML and ASP pages, get working copies, edit files, and update the server.

Now it's time to share files with one or more additional developers on your team. All new developers need to create their own local projects that access the existing master Web application. They follow steps that are similar to the ones above, except they do not create a new Web application.

To create local projects for an existing application

  1. The new developer clicks New Project on the File menu to display the New Project dialog box.

  2. On the New tab, the developer selects Visual InterDev Web Projects in the left pane and then New Web Project in the right pane.

  3. The developer types his own settings in the Name and Location boxes for the new local project and then chooses Open.

    Note   It is up to the developer's discretion whether or not to use the same name as the first developer. Using the same name can make it easier to identify a project that points to a shared Web application on the master Web server.

  4. Click Open.

    The Web Project Wizard appears.

    Step 1:   Specify a server and mode

    The new developer specifies the same server as the first developer and also selects Local mode.

    Step 2:   Specify your Web

    The new developer selects the Connect to an existing Web application on <server name> option.

    The drop-down list contains a list of all available Web applications on the specified server. The new developer selects the appropriate Web application from the list.

  5. Click Finish.

Visual InterDev accesses the master Web application on the master Web server and creates the new local project on the developer's machine. The developer then sees the new project in the Project Explorer. The developer now has access to all the files that are in the Web application on the master Web server.

For more information about working with local copies of a Web application, see Working Locally and Project Architecture.

Sharing Web Application Files on the Master Web Server

You and other developers can now access the same files in the master Web application. Each developer is able to get the latest version of each file. He can also get working copies, edit them locally, and then update the server with the changes.

Visual InterDev's source control features prevent you and the other developers from overwriting each other's work on the master Web server.

In the following scenarios Developer A and Developer B each have local projects on their machines that access the same master Web application.

To synchronize local projects with the master Web application

  1. Developer A chooses Add Item on the Project menu to add multiple files to his project.

    The files are now in his local Web application, but are not in the master Web application. The (flag) icon indicates that a file exists in a local project but not in the master project.

  2. Developer A adds the files to the master Web application by selecting the files and then clicking the Project menu, Web Files, and then Add to Master Web.

    The new files are copied to the master Web application. However, Developer B's project still reflects the former state of the master Web application.

  3. Developer B synchronizes her project with the master Web application by clicking the Project menu, Web Project, and then Synchronize Files.

    Tip   When working with other developers, it is a good idea to synchronize your local project frequently.

    Developer B's local project now reflects the changes made to the master Web server by Developer A.

To resolve conflicts between files

  1. Developer A wants to work on a local copy of Filename.htm. He selects the file in the Project Explorer, chooses Web Files from the Project menu, and then chooses Get Working Copy. He begins to edit the file.

  2. Developer B also wants to work on Filename.htm. She selects the file in the Project Explorer and clicks the Project menu, Web Files, and then Get Working Copy.

    Even though Developer A has already obtained a working copy of the file, Visual InterDev also allows Developer B to obtain a working copy.

  3. Developer A has saved the file and wants to update the master Web application with his latest version. He clicks the Project menu, Web Files, and then Release Working Copy. The master Web application is updated to reflect Developer A's changes.

  4. Now Developer B has saved her changes and is finished with the file. She clicks the Project menu, Web Files, and then Release Working Copy.

    Visual InterDev compares Developer B's working copy against the master Web application's version and detects merge conflicts. The Merge dialog box is displayed to resolve conflicts.

  5. Developer B can view all conflicts and choose how to resolve them. After resolving the conflicts, the master Web application is updated with the resolved version of the file.

  6. Developer A's list of files in the Project Explorer is now out of synch with the master Web application. To get the latest version of the file in his local Web application, he chooses Web Files from the Project menu, and then chooses Get Latest Version.

For more information about working with others on Web application files, see Managing Web Projects and Working Locally.

Controlling Sources with Microsoft Visual SourceSafe

If you have Microsoft Visual SourceSafe, you can extend the capabilities of Visual InterDev's built-in source control to include version control, rollback, and other source control features.

To use Visual SourceSafe with Visual InterDev

  1. In order to use Visual SourceSafe with a master Web application, you need to first install it on the master Web server.

    Because Visual InterDev is compatible with Visual SourceSafe, it is not necessary to install Visual SourceSafe on the client (your local machine).

    For information about installing Visual SourceSafe, see Setting Up Source Control.

  2. After you have installed Visual SourceSafe on the server, you need to enable it on the master Web application. Once one developer has enabled it on the master Web application, it is active for all developers' projects that access the master application. Other developers must refresh their local project to take advantage of source control.

    To enable Visual SourceSafe as the source control, see Adding Source Control to a Web Application.

Now, instead of "getting" and "releasing" files, you "check out" and "check in" files.

For more information about using Visual SourceSafe, see Working with Multiple Developers and the documentation.