使用TFS + git设置Xamarin Studio版本控制

编程入门 行业动态 更新时间:2024-10-13 08:20:46
本文介绍了使用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.

  • 首先,我创建了一个托管的TFS帐户并添加了一个 New Team Project + Git 然后,我必须创建其他登录凭据,因为您的登录信息中不能包含 @ 符号。 要在Visual Studio Team Services(VSTS)中设置备用信用卡,请点击右上角的您的姓名 - >我的档案 - >凭证
  • 启用备用凭证后Xamarin工作室。在我的例子中,我有一个我想添加的解决方案,所以我也打开了我的解决方案文件。 在版本控制下菜单项选择发布(仅在解决方案文件打开时可用) 选择已注册存储库选项卡并选择添加
  • 输入适当的名称。选择 https 协议。
  • 输入您的托管TFS网址即。 xxx.visualstudio 。
  • 输入 443 。
  • 路径将为: / DefaultCollection / _git / +项目名称(正如您输入的那样,包括空格)
  • 用户将成为您在步骤2中创建的替代用户名。在两个打开的窗口中单击确定。
  • 系统会提示您确认发布。选择确定。
  • 然后系统会提示您输入密码。输入您在步骤2中创建的替代密码。如果您在此意外输入了错误的密码,则必须从您的钥匙链中删除该条目。可以在此处找到说明。
  • First of all, I created a hosted TFS account and added a New Team Project + Git
  • 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
  • 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.
  • Under the Version Control menu item select Publish (Only available with solution file open)
  • Select the Registered Repositiories tab and select Add
  • Enter an appropriate name. Select https protocol.
  • Enter your hosted TFS URL ie. xxx.visualstudio.
  • For port, enter 443.
  • The path will be: /DefaultCollection/_git/ + project name (exactly as you typed it including spaces)
  • User will be the alternative username you created in step 2. Click OK on both open windows.
  • You will be prompted to confirm publishing. Select OK.
  • 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版本控制

    本文发布于:2023-10-31 10:51:55,感谢您对本站的认可!
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:版本   git   TFS   Studio   Xamarin

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!