Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Example Analysis of Visual Studio 2010 TFS

2025-01-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail the example analysis of Visual Studio 2010 TFS for you. The content of the article is of high quality, so the editor shares it for you as a reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.

We will be talking about Visual Studio 2010 TFS, which we believe will be more beneficial to the work of .NET developers after the official release.

Anyone who has used Visual SourceSafe knows that VSS is a source code management system that is easy to install and use. TFS also provides a robust system that not only provides source management, but also includes project tracking and development support. This article will mainly introduce TFS under the basic configuration of Visual Studio 2010.

First, give a brief introduction to TFS.

TFS has good support for complex environments. For example, project reporting, SharePoint integration, support for cross-domain and distributed databases, etc.

First, TFS created a central tool repository that facilitates collaboration between different working groups. Try to combine multiple systems in a variety of ways.

Fig. 1 Multi-system model

As shown in figure 1, each system has its own independent repository, resource identification set, commands, and tools. To make the whole system run, it is simply a huge and three-dimensional project, even if a lot of work has been done, there may be mistakes in some places.

If there is a new system, it would be nice to integrate all the projects organically under certain rules.

Fig. 2 TFS model

This kind of integration is often encountered. On an ordinary day, write source code, create builds, test, discover Bugs and proofread and fix. Over and over again, again and again. When all of this work is run on a repository set, all projects can be collaborated. For example, when a Bug is fixed, you want to record it in the appropriate location in the change list.

This is a great contribution of TFS to source code management. Automatic detection, virtual deployment and architectural validation are included in the new model.

Fig. 3 New TFS model

When you use Visual Studio Premium and Ultimate SKUs, you can choose which components to install as needed.

Integrate TFS in Visual Studio

Let's take a look at how to integrate TFS in Visual Studio through the simple way of Team menu. (you can also do this through the home page link)

Figure 4 Team menu

Select and add the server path where the TFS is stored. The Windows 7 machine name used here is JLZB2REL.

Figure 5 add TFS path

Select the server and DefaultCollection in the check box and integrate.

Figure 6 DefaultCollection Integration

The connection between the server and the DefaultCollection now appears in Team Explorer. At this point, nothing has been created.

Figure 7 Team Explorer table

If you create a new Windows window program and add a new code program to source code management, you will get an error prompt.

Figure 8 adding code to source code management

After you select Add Solution to Source Control, you will get an error message-there is no available program group source management folder.

Figure 9 error prompt

This error tip is a reminder to actually create a TFS project that contains all the work. Right-click in Team Explorer to create.

Figure 10 create the TFS project

Create a TFS project for the accounts payable system here. This project contains all the necessary components such as solutions and data for the entire system. After filling in the information, click next.

Figure 11 create a TFS project

The Agile template is the default setting, and you can choose CMMI. Click finish after selecting.

Figure 12 Select template

There are different status updates during the creation process.

Figure 13 generate the TFS project

After the creation is completed, three items Work Items, Builds and and Source Control will be generated in Team Explorer.

Figure 14 generate a new label

Re-add the Add Solution to Source Control entry. At this point, you can create and add.

Figure 15 adding Add Solution to Source Control

You can view the new file you created in Solution Explorer.

Figure 16 View the files in Solution Explorer

You can select the source code management solution in the list and click Check-In to add it.

Figure 17 adding a source code management solution

The TFS created for the work item is ready.

This is the end of the sample analysis on Visual Studio 2010 TFS. I hope the above content can be of some help and learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report