使用TFS + git设置Xamarin Studio版本控制 [英] Setting up Xamarin Studio Version Control with TFS + git

查看:229
本文介绍了使用TFS + git设置Xamarin Studio版本控制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 Team Foundation Service + git 设置 Xamarin 来开发iOS应用程序。我尝试了许多不同的设置,尝试在我们的MAC上设置我的TFS + git集成,但无济于事。我一直收到未授权未能获取的异常。

I am setting up Xamarin with Team Foundation Service + git to develop iOS apps. I have tried many different settings trying to set up my TFS + git integration on our MAC with no avail. I keep getting exceptions of either not authorized or failed to fetch.

推荐答案

我将列出所有我认为尽可能完整的步骤。

I am going to list all steps I took to be as complete as possible.


  1. 首先,我创建了一个托管的TFS帐户并添加了一个 New Team Project + Git
  2. 然后,我必须创建其他登录凭据,因为您的登录信息中不能包含 @ 符号。
    要在Visual Studio Team Services(VSTS)中设置备用信用卡,请点击右上角的您的姓名 - >我的档案 - >凭证

  3. 启用备用凭证后Xamarin工作室。在我的例子中,我有一个我想添加的解决方案,所以我也打开了我的解决方案文件。 版本控制下菜单项选择发布(仅在解决方案文件打开时可用) 选择已注册存储库选项卡并选择添加

  4. 输入适当的名称。选择 https 协议。

  5. 输入您的托管TFS网址即。 xxx.visualstudio.com

  6. 输入 443

  7. 路径将为: / DefaultCollection / _git / +项目名称(正如您输入的那样,包括空格)

  8. 用户将成为您在步骤2中创建的替代用户名。在两个打开的窗口中单击确定

  9. 系统会提示您确认发布。选择确定

  10. 然后系统会提示您输入密码。输入您在步骤2中创建的替代密码。如果您在此意外输入了错误的密码,则必须从您的钥匙链中删除该条目。可以在此处找到说明。

  1. First of all, I created a hosted TFS account and added a New Team Project + Git
  2. I then had to create alternative login credentials since you cannot have an @ symbol in your login info. To set up alternate creds in Visual Studio Team Services (VSTS), click on your name on the top right -> My Profile -> Credentials
  3. After enabling the alternative credentials open Xamarin Studio. In my case I had a solution that I wanted to add so I had my solution file open as well.
  4. Under the Version Control menu item select Publish (Only available with solution file open)
  5. Select the Registered Repositiories tab and select Add
  6. Enter an appropriate name. Select https protocol.
  7. Enter your hosted TFS URL ie. xxx.visualstudio.com.
  8. For port, enter 443.
  9. The path will be: /DefaultCollection/_git/ + project name (exactly as you typed it including spaces)
  10. User will be the alternative username you created in step 2. Click OK on both open windows.
  11. You will be prompted to confirm publishing. Select OK.
  12. You will then be prompted for your password. Enter you alternative password you created in step 2. If you accidentally enter the wrong password here, you must delete the entry from your key chain. Instructions can be found here

您的 TFS + git与Xamarin Studio 集成应该完成!如果您有任何其他问题,我会尽我所能帮助他们。

Your TFS + git integration with Xamarin Studio should be complete! If you have any other issues I will try my best to help with them.

这篇关于使用TFS + git设置Xamarin Studio版本控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆