Team Development in Visual Studio.net Beta2 (2)

zhaozj2021-02-17  61

Access Projects from Visual SourceSafe

For the first time each team member wants to access the project from Visual SourceSafe, you must select Source Control from the File menu, then select Open Project from Source Control.

IDE (integrated development environment) will prompt team members to select Visual SourceSafe Database Server, and require team members to select the Visual SourceSafe project and the local folder that specifies the copy solution file. In the figure below, the folder MyWebProjects is selected to save the solution file to the local folder D: / Documents and Settings / My Documents / Visual Studio Projects.

Figure 4. Setting The Local Folder Location for a Visual SourceSafe Project

The solution file is copied to the default folder C: / documents and settings / / My Documents / Visual Studio Projects. Of course, you can modify the following method: Select Environment-> Projects and Solutions from the Tools menu.

If the solution files and engineering files are saved in different folders, you won't get the following dialog, but if the solution file and project file are stored in the same Visual SourceSafe folder, IDE prompts the user to select the solution. file.

Figure 5. Selecting The Solution File

At this point, if the solution contains a Web project shared by one or more files, IDE prompts the following dialog:

Figure 6. The Set Project location Dialog Box

You must specify a different web location for each web project in the dialog box. You can place the web item on the server, such as http: // myserver / myproject_myroot, or placed locally, such as: http: // localhost / myproject, then IDE will prompt you to select a local location for non-Web projects.

Note that you only need to use the previous visit to the previously mentioned - from FileàSource Control à Open Project from Source Control. When you open your solution later, you must use your local solution without opening from the Web Server or Visual SourceSafe.

To add a solution to the existing items in Visual SourceSafe: FileàSource ControlàAdd Project from sourceControl ... Then the IDE prompts the dialog mentioned above.

Modify file

Team members write their own code can be done as usual. When they need to be modified, the development environment will automatically prompt them for Check Out files. Note that the addition and delete files in the project contain the check out project file.

Release change (Exposing Changes)

Team members want to release their own changes to the team, such as modification, debugging, and testing source code. Once they determine that the change has been completed, select the file, right-click, select Check IN or from ToolàSource Controlàcheck IN, which will be visible to all members in Visual SourceSafe.

Get the latest version

A team member wants to get the latest changes in the team, right-click the solution file in Soluton Explorer, select Get Lastest Version (Recursive). When team members want to compile the latest version of the application, you can use the same way. Offline work

Visual Studio.NET Beta 2 is greatly improved on Working Offline compared to Visual Studio.NET Beta 1. Offline work is very important for many developers because they may spend a lot of time outside the office or travel.

Offline work allows team members to integrate solutions and project files from Visual SourceSafe offline. That is, team members can check out files without connecting to the company's network and Visual SourceSafe Datebase, when team members return to the office reconnect solutions and projects, IDE can synchronize all their copies (ie solutions and Projects) and changes between Visual SourceSafe Database all copies.

l Real offline

To enable solutions and items, select ToolàSource ControlàChange Source Control ..., IDE displays the following dialog.

Figure 7. Connecting and Disconnecting Solution Projects from Visual SourceSafe

Do not choose Connected, you can enable solutions and items to offline.

Note: The file you have check out before you work offline will keep the status of Checked Out. In order to avoid possible loss of data, a good practice is before the offline work, check out, you will need it throughout offline work. file. However, as mentioned below, this is not necessarily required.

l At the check out file

Using the usual method check out file when you are offline, when you check out files at offline, you will get the following prompt:

Figure 8. Checking Out Files While Disconnected

In order to be offline Check Out, select Don't Show this Dialog Again to let the dialog no longer appear, then select Check Out (disconnected) to continue so that you will get the following other dialog, this can also be ignored, Select OK.

Figure 9. Error Dialog, Displayed The First Time You Check Out A File While Disconnected

When you try to leave the Check Out file at a time, there will be no more prompts, everything goes well. Note The additional error dialog mentioned above is the small bug of Visual Studio.NET Beta2, which will not be released by RTM.

When a team member offline Check Out file, the Checked OUT file will be part of the project and is labeled as Read / Write.

l Offline Check in file

It is impossible to check in file when it is offline. This is intentional, so it is easy to understand that the file is closed by check out when the project is re-online.

l Implement online

Realizing online is the same, select ToolàSource ControlàChange Source Control ..., then the same dialog appears, select Connected to enable the solution and project to implement online.

l Synchronous changes

To synchronize your changes in your way offline and the solutions and projects in Visual SourceSafe Database, check out from the Visual SourceSafe when offline. After the online, the file prompts the following dialog box when you offline prompts:

Figure 10. Reconcilling Files That Wee Checked Out While Dischanected

First select Check Out, the following dialog box appears:

Figure 11. Checking Out Files from Visual SourceSafe

Select Leave this file? You can prevent the modifications you make by the Visual SourceSafe all versions, you can check ICK.

Note that only files from Checked Out offline will display the above dialogs, and files that you have checked out before you are offline, you will not prompt these, be careful, just as prompted by the first dialog box, May cause data loss.

If you are offline, you check out a file, and others also check out this file, and modified and check IN, you must be careful when you check in file, otherwise you will Cover the modifications made by other members. The safest way is to add modifications to manual.

If you check out, you check out a file and another user Check Out, when you get the solution and project online, the following dialog box appears:

Figure 12. Warning When Attempting to Check Out An Already Checked-Out File

Click

OK

. in

Solution Explorer

A small warning symbol will appear next to these affected documents, indicating that these documents are worth noting.

转载请注明原文地址:https://www.9cbs.com/read-30005.html

New Post(0)