【问题标题】:Team Foundation Server 2013 GitUpgradeTemplate.xaml not found未找到 Team Foundation Server 2013 GitUpgradeTemplate.xaml
【发布时间】:2015-12-06 23:54:39
【问题描述】:

我在 Team Foundation Server 2013 中为我的项目创建了一个新的构建定义。但是,当我对新构建进行排队时,我收到一个错误,即找不到 GitUpgradeTemplate.xaml(错误代码 404)。原始错误消息是德文的,所以我为你们翻译了它。你有什么想法可以解决这个问题吗?

德语:

Ausnahmemeldung: Fehler beim Herunterladen von Datei     
"#/4/BuildProcessTemplates/GitTemplate/GitUpgradeTemplate.xaml". Details
404:Not Found - {"$id":"1","innerException":null,"message":"Der 
Container 4 wurde nicht     
gefunden.","typeName":"Microsoft.VisualStudio.Services.FileContainer.ContainrNotFoundException,
Microsoft.VisualStudio.Services.WebApi, Version=12.0.0.0, Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a","typeKey":"ContainerNotFoundException","errorCode":0,"eventId":4700} (Typ FileNotFoundException)

Ausnahmestapelüberwachung: bei Microsoft.TeamFoundation.Build.Client.FileContainerHelper.GetFile(TfsTeamProjectCollection projectCollection, String itemPath, Stream outputStream)
bei Microsoft.TeamFoundation.Build.Client.FileContainerHelper.GetFileAsString(TfsTeamProjectCollection projectCollection, String itemPath)
 bei Microsoft.TeamFoundation.Build.Client.ProcessTemplate.Download(String sourceGetVersion)
bei Microsoft.TeamFoundation.Build.Hosting.BuildControllerWorkflowManager.PrepareRequestForBuild(WorkflowManagerActivity activity, IBuildDetail build, WorkflowRequest request, IDictionary`2 dataContext)
bei Microsoft.TeamFoundation.Build.Hosting.BuildWorkflowManager.TryStartWorkflow(WorkflowRequest request, WorkflowManagerActivity activity, BuildWorkflowInstance& workflowInstance, Exception& error, Boolean& syncLockTaken)

我的翻译:

Exception handling: error on downloading the file "#/4/BuildProcessTemplates/GitTemplate/GitUpgradeTemplate.xaml". 
Details 404:Not Found - 
{"$id":"1","innerException":null,"message":"The container 4 was not found.","typeName":"Microsoft.VisualStudio.Services.FileContainer.ContainerNotFoundException, Microsoft.VisualStudio.Services.WebApi, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a","typeKey":"ContainerNotFoundException","errorCode":0,"eventId":4700} (Typ FileNotFoundException)

Exception stack monitoring: 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)

【问题讨论】:

    标签: git xaml tfs build


    【解决方案1】:

    首先,您应该注意 GitUpgradeTemplate.xaml 构建过程文件在 git 团队项目中可用。

    其次,打开构建定义文件,确保 GitUpgradeTemplate.xaml 文件在 Build process file 下拉列表中可用。

    【讨论】:

    • 屏幕截图中显示的下拉列表有两个条目。 DefaultTemplate (GitTemplate.12.xaml) 和升级模板 (GitUpgradeTemplate.xaml)。如果我选择其中一个并单击列表下方的下载链接,我会收到一个警报窗口,其中包含与原始帖子中相同的错误消息。只有丢失文件的名称会更改。我没有自定义模板,自从我开始处理这个问题以来,列表一直是这样的。
    猜你喜欢
    • 2014-12-09
    • 1970-01-01
    • 1970-01-01
    • 2015-11-11
    • 2015-01-08
    • 1970-01-01
    • 1970-01-01
    • 2013-06-26
    • 2014-10-27
    相关资源
    最近更新 更多