TFS 2015-tfpt创建新的团队项目 [英] TFS 2015 - tfpt Create new Team Project

查看:185
本文介绍了TFS 2015-tfpt创建新的团队项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试创建Powershell脚本以在Team Foundation Server 2015中创建新项目.

Trying to create a powershell script to create a new project in Team Foundation Server 2015.

运行脚本时,我收到消息:

When running the script I get the message:

项目集合没有用于创建的默认位置 项目门户网站已配置.可以使用以下方式配置此位置 Team Foundation管理控制台或指定 /webapplication和/relativepath参数.

The project collection does not have a default location for creating project portal sites configured. Either configure this location using the Team Foundation Administration Console or specify the /webapplication and /relativepath arguments.

任何建议,我想创建一个新的git存储库,而不需要使用Visual Studio.

Any suggestions, I want to create a new git repository instead of needing to use Visual Studio.

我创建新的项目脚本.

[CmdletBinding()]
Param(
  [Parameter(Mandatory=$True,Position=1)]
   [string]$name
)
Write-Host "Create new project: $name";
tfpt createteamproject /collection:'http://localhost:8080/tfs/DefaultCollection' /teamproject:"$name" /processtemplate:'scrum' /sourcecontrol:'NewGitRepo'

推荐答案

如果需要创建新的Git存储库,则无需创建新的Team Project.您可以在单个项目中添加任意数量的Git存储库.

If you need to create a new Git repository, there's no need to create a new Team Project. You can add as many Git repos as you want to a single project.

在Web门户中,访问代码"标签,单击活动的存储库(在左上角),然后单击新建存储库"按钮.

In the web portal, visit the "Code" tab, click on the active repository (in the top left) and click on the "New Repository" button.

这篇关于TFS 2015-tfpt创建新的团队项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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