Templates 无法使用新的TfvcTemplate.12.xaml生成
我尝试将新模板TfvcTemplate.12.xaml用于我的构建(Vs 2013),但每次我都收到以下错误消息:Templates 无法使用新的TfvcTemplate.12.xaml生成,templates,build,Templates,Build,我尝试将新模板TfvcTemplate.12.xaml用于我的构建(Vs 2013),但每次我都收到以下错误消息: TF215097: An error occurred while initializing a build for build definition \path\Buildname: Exception Message: One or more errors occurred. (type AggregateException) Exception Stack Trace:
TF215097: An error occurred while initializing a build for build definition \path\Buildname:
Exception Message: One or more errors occurred. (type AggregateException)
Exception Stack Trace: at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at Microsoft.TeamFoundation.Build.Client.FileContainerHelper.GetFile(TfsTeamProjectCollection projectCollection, String itemPath, Stream outputStream)
at Microsoft.TeamFoundation.Build.Client.FileContainerHelper.GetFileAsString(TfsTeamProjectCollection projectCollection, String itemPath)
at Microsoft.TeamFoundation.Build.Client.ProcessTemplate.Download(String sourceGetVersion)
at Microsoft.TeamFoundation.Build.Hosting.BuildControllerWorkflowManager.PrepareRequestForBuild(WorkflowManagerActivity activity, IBuildDetail build, WorkflowRequest request, IDictionary`2 dataContext)
at Microsoft.TeamFoundation.Build.Hosting.BuildWorkflowManager.TryStartWorkflow(WorkflowRequest request, WorkflowManagerActivity activity, BuildWorkflowInstance& workflowInstance, Exception& error, Boolean& syncLockTaken)
Inner Exception Details:
Exception Message: VS30063: You are not authorized to access http://tfs.mydomain.com:8080. (type VssUnauthorizedException)
Exception Stack Trace: at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.<SendAsync>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
at Microsoft.VisualStudio.Services.WebApi.VssHttpRetryMessageHandler.<SendAsync>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
at Microsoft.VisualStudio.Services.WebApi.HttpClientExtensions.<DownloadFileFromTfsAsync>d__2.MoveNext()
TF215097:初始化生成定义\path\Buildname的生成时出错:
异常消息:发生一个或多个错误。(类型AggregateException)
异常堆栈跟踪:位于System.Threading.Tasks.Task`1.GetResultCore(布尔waitCompletionNotification)
位于Microsoft.TeamFoundation.Build.Client.FileContainerHelper.GetFile(TfsTeamProjectCollection projectCollection、String itemPath、Stream outputStream)
位于Microsoft.TeamFoundation.Build.Client.FileContainerHelper.GetFileAsString(TfsTeamProjectCollection projectCollection,String itemPath)
在Microsoft.TeamFoundation.Build.Client.ProcessTemplate.Download(String sourceGetVersion)上
位于Microsoft.TeamFoundation.Build.Hosting.BuildControllerWorkflowManager.PrepareRequestForBuild(WorkflowManagerActivity活动、IBuildDetail生成、WorkflowRequest请求、IDictionary`2数据上下文)
位于Microsoft.TeamFoundation.Build.Hosting.BuildWorkflowManager.TryStartWorkflow(WorkflowRequest请求、WorkflowManagerActivity活动、BuildWorkflowInstance和workflowInstance、异常和错误、布尔值和同步锁)
内部异常详细信息:
异常消息:VS30063:您无权访问http://tfs.mydomain.com:8080. (类型VssUnauthorizedException)
异常堆栈跟踪:位于Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.d_u0.MoveNext()
---来自引发异常的上一个位置的堆栈结束跟踪---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)
在System.Runtime.CompilerServices.TaskWaiter.HandleNonSuccessAndDebuggerNotification(任务任务)中
在System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()中
位于Microsoft.VisualStudio.Services.WebApi.VssHttpRetryMessageHandler.d_u1.MoveNext()
---来自引发异常的上一个位置的堆栈结束跟踪---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)
在System.Runtime.CompilerServices.TaskWaiter.HandleNonSuccessAndDebuggerNotification(任务任务)中
在System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()中
在Microsoft.VisualStudio.Services.WebApi.HttpClientExtensions.d_u2.MoveNext()上
我试图用错误代码找到答案,但似乎没有任何东西与我的问题有关。你能帮我吗?:)
谢谢很高兴看到我不是唯一一个。你找到解决办法了吗?嗨,罗伯特。您需要先下载模板,然后才能使用它。在源代码管理资源管理器中的团队项目下创建BuildProcessTemplates文件夹,并将其签入到团队项目源代码管理中。将TfsTemplate.12.xaml模板下载到本地路径,然后将其添加到源代码管理资源管理器中的BuildProcessTemplates文件夹中,然后执行签入。在“生成定义>>过程”选项卡中,单击“新建…”按钮,从团队项目源代码管理中的BuildProcessTemplates文件夹中添加TfsTemplate.12.xaml,并保存生成定义。回答我的链接: