visualstudio use TFS visualstudio online tutorial service provided

       visualstudio online is provided by Microsoft Online Team Foundation Server  services referred to TFS,TFS we call workflow collaboration engine, and more specifically, it is called a team project version control. It is mainly used as the code is to provide the management team at the time of development, ease of management between the team code.
        Typically, the company's project team will deploy TFS service locally, closed source in the LAN, of course, does not rule out some companies use direct service visualstudio online offer.
       step:
       1, open the URL http://www.visualstudio.com/ , register and log in. If you have a Microsoft account, you can log in directly.
       2, after the interface following landing, or directly into the interface shown in Step 3. This interface is to present information interface, "My information" is the account you just landed, the right of the "account" will list all personnel under the TFS service you have, "owner" is you, the members that you in partnership under this TFS, I now have two partners, you click the link "owner" link below, or "member", TFS can enter the management interface, and now we will enter himself is the "owner "the TFS services Manager, to manage their own projects.
       3, into its own management interface, you can see the following interface, pay attention to the upper left corner of the title "visual studio online", the title is shown below TFS manager of project management interface, if there is behind the " Visual Studio Online / project name "this format, that is, into the management of the project code.
     4, the establishment of its first projects need to build online, click on the "new" start building the project.
    5, fill in the Project name, which is the project name, fill in the Description, this is the project description, project name is required, the other the default, and then click Create Project to create a project under the button to start creating your first project, wait, back in the process, there may be some slow. After completing the refresh interface, you will see step 4 in the figure "new" will appear below the items you just created.
   6, now you can just click on the first step in Figure 4 "new" link below your project, you can enter your project management interface, as shown below. Note that the upper-left corner of the title, as I said in step 3 above, refers to the current state, we have entered a specific project code management interface, if you want to go back TFS total management interface on the level, That point "visual studio online" can have several labels, "home", "code", "work" under the heading, "build", "test", these words I think we know everything, I will not say a. Key steps involved in something that is under the code labels, other labels, you can own research, quite useful.
       7. These are the steps to use visual studio online services of TFS necessary to do after these steps are done you can go back to our visual studio, and the establishment of our first solution uses online TFS, and I will use visual studio2013 as an example of this project, each version of visual studio link different ways visual studio online, the release link visual studio online is the easiest visual studio2013, but I use all the priority in this tutorial visual studio to link visual studio online generic method, Visual studio2013 easy way to link in the next paragraph, and now began to link visual studio online, as shown below, choose this, if you have not once had links tfs service, you can only see the following circle the button, point it now.
      8, you will see a pop-up team resource management interface, possibly on the right, middle or left, follow the prompts, click "Connect to a team project," if you can not see, then try to point the plug icon , look good, be sure to see the "connect to a team project," if you can not find, or because different versions of visual studio, the " connect to team project" button is different, but in short, you can see step 9 like interface.
       9、第8步要看你的vs版本是什么了,可能会有所不同,但是我相信你能来到这一步,如下图,你就成功了。点”服务器“按钮。

         10、点”添加“按钮。你将看到添加Team Foundation Server窗体,把我们在第2步中申请到的”所有者“下的链接么,填到Team Foundation Server的URL或者名称里面,这个链接就是属于你自己的在线TFS服务链接,填完之后链接详细信息将变灰,”确定“按钮就能点击了,好,点确定。
      11、这是前面这两个”添加Team Foundation Server“和"Team FoundAtion Server列表"窗体就可以关闭了,回到”链接到Team Foundation Server“窗体,选择我们刚刚填好的链接,就会出现下图所示的结果,我已经建立了好几个项目,现在我们以”测试项目“为例,把它打上对勾,然后点”连接“按钮。

     12、经过一点等待之后,就能看到这个界面。每个版本的visual studio会不一样,但是下图中的红色椭圆标出的选项都会有。选择”源代码管理器“。

    13、然后我们就看到了这个界面,选择红色方框中的”未映射“。让我开始设置TFS在本地的工作文件夹。

     14、点击”本地文件夹“右面的浏览按钮,选择一个空的本地文件夹,这个文件将将作为我们以后使用 Visual studio online的TFS服务的本地工作目录。

      15、按照提示做完之后,你来到你选择的那个文件夹看一下,将生成两个文件夹,其中"$tf"文件夹是隐藏的不用管它,BuildProcessTemplates是一个附带的,也不用管。

    16、看到第15步结果之后,我们的 Visual studio online的TFS服务的本地工作目录已经创建完成,下面我们开始在TFS里面创建解决方案。
     ”名称“就填写我们的项目名称,我这里就不再改名字了,大家填的时候要注意命名规范,”位置"这里是重点,我们要把解决方案创建到TFS本地工作目录里面,右侧的两个对勾打上,”添加到源代码管理“就是把这个解决方案添加到我们的TFS中。

     17、解决方案创建完毕之后,回到解决方案资源管理器界面上看一下,每个项目文件夹、文件前面都会出现一个加号,这是等待”签入“的标志,到目前为止我们已经成功在TFS里面建立了解决方案,接下来,你可以对这个解决方案做编辑了。
       18、”签入“这是我要强调的问题,我们的本地代码编写完毕并能正常运行之后,才能执行”签入“操作,”签入“的意义就是,你完成了一部分功能, 向团队项目提交了你的填写的这部分代码了,这也就是所谓的TFS团队项目版本控制器的核心意义,每个项目组员,编写完成自己的功能之后,把自己的代码合并到整个团队代码中,即”签入“。
       19、签入的步骤如下,在解决方案资源管理器中,右键你要签入的内容,在文件上右键签入,那就签入这个文件,在文件夹上右键签入,那就签入这个文件夹下的所有内容,在项目上右键签入,那就签入整个项目,在解决方案上右键签入,那就是签入整个解决方案,点完签入之后,你会看到这次签入的内容列表,每个visual studio的版本不同,这个界面也不同,但内容列表都是有的。因为这是初次创建,所以我选择签入解决方案。这个签入界面是visual studio2013的签入界面,每个版本的这个界面大同小异。
在”注释“里面填上本次签入内容的描述,然后点”签入“按钮,就完成了签入操作。

       20、看第13步中的图,你的源代码资源管理器中就能看到你刚刚签入的解决方案,当然,这也签入到了你的visual studio online里面,你也同样能在第6步的页面中看到你刚刚创建的解决方案了。
        21、如果你已经创建的解决方案,想要签入到visual studio online里面也很简单,只需要把整个解决方案文件夹复制到TFS本地工作目录里面,然后在解决方案上右键选择”添加源代码管理器“,就可以看到,解决方案资源管理器中的每个内容前面都出现了加号,这个时候就成功了,你可以现在就签入到TFS中,或者等你编辑完成之后再签入。
        22、现在我们拥有了自己的TFS,这是一个团队项目工具,所以我们该邀请项目成员了,回到第4步的界面,选择”users“标签,如下图。这里有你的项目组成员列表,你自己肯定在这里,然后你看右侧列表,那是(2 of 5 assigened)也就是,你这个项目组已经有两个人了,还能再来三个人。
    23、把你需要邀请的人员账号填到Sign-in address里面,账号就是他们的电子邮箱,点Send Invitation之后,你邀请人员 电子的邮箱会收到一封邀请信,他们点链接就可以加入你的项目组了。
     24、现在看第6步的图,这次不点”code“标签了,点”home“标签,如下图,看看红色方框的members 位置,这就是本项目的项目组成员,都是头像,如果你发现还是你自己的,那么,就点Manage打开管理人员添加和修改界面。
         25、在这里你看以管理项目组成员,添加、删除和查看他们。如下图。点”ADD“按钮,选择”add user“。
         26, select "Browse" to browse your friends now visual studio online, then check mark, as long as no more than five can be, if you are a local tyrant, subscribe to a paid account, you want to pull a few pull a few, so easy.
The long list also names two people, they are super TFS administrator, I did not dare harass them if you tried, I did my thing, huh, huh.

         visual studio online tutorial is complete, the entire course is relatively long, I spent two hours to finish, then the meaning of the code checked into the TFS is, either your own or your project team, you can control their own codes progress and changes every time, so that the code of the project team under control, can help you host your code. visual studio online is a free service, the team can add up to 5 people, if you want to own the whole team moved in, then you need to pay a subscription.
        Additional content:
        visual studio 2013 visual studio online using the method, have to say, since the beginning of Microsoft's cloud-huh, and even visual studio can login, the login screen just like QQ. After landing, you will see visual studio upper right corner of your own avatar, as shown below, click "Connect to TFS", then you just double-click Team Explorer in their own projects, you can directly start the step 12.

Reproduced in: https: //my.oschina.net/dongri/blog/610907

Guess you like

Origin blog.csdn.net/weixin_34375233/article/details/91765937