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

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

问题描述

我有一个使用 Kotlin 在 Android Studio 中开发的现有 Android 项目.它尚未受版本控制.我想将它添加到新的经典 TFVC 项目中的 Visual Studio Team Services,而不是 Git 项目.谁能解释一下如何做到这一点,或者给我指点教程?

我已经安装了 Team Services 插件并配置了 TF 可执行文件,但现在我正在兜兜转转,试图将我的项目与新的或现有的 TFVC 项目相关联.我看到了一个导入 Git TFS 项目的选项,但没有用于 TFVC.似乎没有什么能完全满足我的需要.

有什么指点吗?

解决方案

安装团队服务插件后,您还应该安装

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

对于android studio,不能直接将项目导入VSTS TFVC repo.如您所见,它可以导入到 VSTS Git 存储库中.

您应该从 VSTS TFVC 存储库中检出(VCS -> 从版本控制检出 -> 团队服务 TFVC).对于 MAC 操作系统,可以使用

2.在本地配置并映射TFVC repo

配置工作区 ->选择本地路径 ->地图&得到.

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天全站免登陆