Я использую команду -
tfpt.exe createteamproject /collection:url /teamproject:"Projectname" /processtemplate:CMMI /noportal
из командной строки, чтобы создать новый командный проект в Visual Studio Team services (VSTS). В VSTS я создал бесплатную пробную учетную запись и использовал этот URL-адрес и учетные данные для создания командного проекта.
Когда я запускаю указанную выше команду в командной строке, я получаю исключение ошибки. Подробный лог прилагается ниже.
Обратите внимание: у меня нет опыта разработки/программирования, я просто хочу автоматизировать эту задачу с помощью powershell
У меня есть мощные инструменты Visual Studio 2013 и TFS 2013, установленные на машине, где я нахожусь. запуск этой команды.
Кто-нибудь видел эту ошибку раньше?
C:\Windows\system32>tfpt.exe createteamproject/collection:https://hmsutar.visualstudio.com/defaultcollection /teamproject:Mycode /processtemplate:scrum /noportal
All provided settings are valid.
---begin Exception entry---
Exception Type: Microsoft.TeamFoundation.Client.PcwException
Exception Message: The Project Creation Wizard encountered an error while creating the project structure on hmsutar.visualstudio.com\DefaultCollection.
Exception Details:
-- Inner Exception --
Exception Message: The requested operation is not allowed. (type SoapException
SoapException Details: <detail ServerTimeStamp="2016-03-16T09:56:11:045" ExceptionMessage="The requested operation is not allowed." BaseExceptionName="Microsoft.TeamFoundation.TeamFoundationServerException" />
Exception Stack Trace: at Microsoft.TeamFoundation.Proxy.CommonStructureService.CreateProject(String projectName, XmlElement structure)
--- end Exception entry ---
---begin Exception entry---
Exception Message: TF200016: The following project does not exist: Mycode. Verify that the name of the project is correct and that the project exists on the specified Team Foundation Server. (type SoapException)SoapException Details: <det
l ServerTimeStamp="2016-03-16T09:56:11:873" ExceptionMessage="TF200016: The following project does not exist: Mycode. Verify that the name of the project is correct and that the project exists on the specified Team Foundation Server." BaseexceptionName="Microsoft.TeamFoundation.Core.WebApi.ProjectException" />
Exception Stack Trace:at Microsoft.TeamFoundation.Proxy.CommonStructureService.GetProjectFromName(String projectName)
--- end Exception entry ---
2016-03-16T02:56:12 | Module: BatchTeamProjectCreator | Thread: 1 | Microsoft.visualStudio.TeamFoundation.PCW.ProjectCreationException: The Project Creation Wizard encountered an error while creating the project structure on hmsutar.visualstudio.com\DefaultCollection. ---> Microsoft.TeamFoundation.Client.PcwException
The Project Creation Wizard encountered an error while creating the project structure on hmsutar.visualstudio.com\DefaultCollection. ---> System.Web.Services.protocols.SoapException: The requested operation is not allowed.
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
Log file has been created at "C:\Users\Student\AppData\Local\Temp\Mycode.log".
Check the log for detailed results.
Журналы
-----from log file--
2016-03-16T02:56:10 | Module: CssStructureUploader | Thread: 5 | Uploading CSS structure: "<Nodes><Node StructureType="ProjectLifecycle" Name="Iteration" xmlns=""><Children><Node StructureType="ProjectLifecycle" Name="Sprint 1" /><Node StructureType="ProjectLifecycle" Name="Sprint 2" /><Node StructureType="ProjectLifecycle" Name="Sprint 3" /><Node StructureType="ProjectLifecycle" Name="Sprint 4" /><Node StructureType="ProjectLifecycle" Name="Sprint 5" /><Node StructureType="ProjectLifecycle" Name="Sprint 6" /></Children></Node><Node StructureType="ProjectModelHierarchy" Name="Area" xmlns="" /></Nodes>"
2016-03-16T02:56:10 | Module: CssStructureUploader | Thread: 5 | Creating Project : Mycode
2016-03-16T02:56:11 | Module: CssStructureUploader | Thread: 5 | TF30155: Error occurred while trying to create project : "Mycode"
---begin Exception entry---
Time: 2016-03-16T02:56:11
Module: Engine
Event Description: TF30162: Task "UploadStructure" from Group "Classification" failed
Exception Type: Microsoft.TeamFoundation.Client.PcwException
Exception Message: The Project Creation Wizard encountered an error while creating the project structure on hmsutar.visualstudio.com\DefaultCollection.
Exception Details:
The Project Creation Wizard encountered a problem while creating the project structure on hmsutar.visualstudio.com\DefaultCollection.
The reason for the failure cannot be determined at this time.
Because the operation failed, the wizard was not able to finish
creating the Team Project.
Stack Trace:
at Microsoft.VisualStudio.TeamFoundation.PCW.CssStructureUploader.Execute(ProjectCreationContext context, XmlNode taskXml)
at Microsoft.VisualStudio.TeamFoundation.PCW.ProjectCreationEngine.TaskExecutor.PerformTask(IProjectComponentCreator componentCreator, ProjectCreationContext context, XmlNode taskXml)
at Microsoft.VisualStudio.TeamFoundation.PCW.ProjectCreationEngine.RunTask(Object taskObj)