将现有的Android Studio项目添加到VSTS [英] Add existing Android Studio project to VSTS

查看:93
本文介绍了将现有的Android Studio项目添加到VSTS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用Kotlin在Android Studio中开发的现有Android项目.尚未受版本控制.我想将其添加到新的经典TFVC项目而不是Git项目的Visual Studio Team Services中.任何人都可以解释如何执行此操作,或为我提供教程吗?

我已经安装了Team Services插件并配置了TF可执行文件,但是现在我正四处逛逛,试图将我的项目与新的或现有的TFVC项目相关联.我看到了一个导入Git TFS项目的选项,但是对于TFVC则没有.似乎什么也做不了.

有指针吗?

解决方案

在安装团队服务插件之后,您还应该安装 TF命令行工具 :

下载TFF_CLC-14.*.*.zip(目前为TFF_CLC_14.120.0.zip)->将.zip文件提取到某个目录中->在命令行/终端-> cd到提取文件-> tf eula->完成阅读->按y.

更多详细步骤,您可以参考 TFVC支持./p>

然后在android studio中配置TF :

文件->设置->版本控制-> TFVC->在提取的路径中选择文件tf.cmd(对于Windows)->测试以检查其是否有效->好吧.

现在,您已经在android studio中完全配置了TFVC VCS.

对于android studio,它无法直接将项目导入VSTS TFVC存储库.如您所见,它可以直接导入VSTS Git存储库.

您应该从VSTS TFVC存储库中签出(VCS->从版本控制中签出->团队服务TFVC). 对于MAC OS,Android Studio中的 TFVC选项/命令可以使用.但是不幸的是,对于Windows OS,它只能检出TFVC存储库,而TFVC选项/命令不可用.如果您使用的是Windows操作系统,则可以在android studio中反馈问题->帮助->提交反馈.

目前的解决方法是,您可以在Visual Studio中配置并映射TFVC存储库,然后将您的android项目复制到map目录中,然后将其添加到源代码管理中,最后检查更改VSTS.详细步骤如下:

1.连接VSTS项目

VS->团队资源管理器->管理连接->连接到团队项目->输入您的VSTS凭据->选择VSTS项目->连接.

2.在本地配置和映射TFVC存储库

配置工作区->选择本地路径->地图和搞定.

3.将android项目添加到源代码管理中

将android项目复制到本地地图路径(在上述步骤中)-> VS->源代码管理资源管理器->确保工作空间和本地路径正确->将项目添加到文件夹->选择您复制的项目->完成.

4.签到VSTS更改

团队资源管理器->待处理的更改-> (添加评论)->签入.

现在android studio项目已添加到VSTS.

I have an existing Android project developed in Android Studio using Kotlin. It's not yet under version control. I'd like to add it to Visual Studio Team Services in a new classic TFVC project, not a Git project. Can anyone explain how to do this, or point me to a tutorial?

I have installed the Team Services plugin and configured the TF executable, but now I'm going around in circles trying to associate my project with a new or existing TFVC project. I see an option to import into a Git TFS project, but nothing for TFVC. Nothing seems to quite do what I need.

Any pointers?

解决方案

After install the team services plugin, you should also install TF command line tool:

Download TFF_CLC-14.*.*.zip (TFF_CLC_14.120.0.zip for now) -> extract the .zip file in a certain directory -> in commandline/terminal -> cd to the extract files -> tf eula -> finish reading -> press y.

More detail steps, you can refer TFVC support.

Then configure the TF in android studio:

File -> settings -> version control -> TFVC -> select the file tf.cmd (for windows) in the path that you extract -> test to check if it’s valid -> OK.

Now you have configure the TFVC VCS totally in android studio.

For android studio, it can’t import project into VSTS TFVC repo directly. As you found, it can just import into VSTS Git repo.

You should checkout from VSTS TFVC repo (VCS -> checkout from version control -> team services TFVC). For MAC OS, the TFVC options/commands in android studio can use used. But unfortunately, for windows OS, it can only checkout TFVC repo, the TFVC options/commands is not available. If you are using windows OS, you can feed back the issue in android studio -> help -> submit feedback.

The work around for now is that you can config and map the TFVC repo in visual studio, then copy your android projects in the map directory and then add them in source control, finally checkin the changes to VSTS. Details steps as below:

1. Connect with VSTS project

VS -> team explorer -> manage connections -> connect to team project -> input your VSTS credential -> select the VSTS project -> connect.

2.Config and map TFVC repo locally

Configure workspace -> select a local path -> Map & Get.

3. Add android project to source control

Copy the android project to the local map path (in above step) -> VS -> source control explorer -> make sure the workspace and local path are correct -> add items to folder -> select the project you copied -> finish.

4. Checkin changes to VSTS

Team explorer -> pending changes -> (add comment) -> checkin.

Now the android studio project is added to VSTS.

这篇关于将现有的Android Studio项目添加到VSTS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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