【问题标题】:Customising the default TFS Git build template自定义默认 TFS Git 构建模板
【发布时间】:2014-01-12 17:27:35
【问题描述】:

我已将默认的 TFS Git 构建模板 (GitTemplate.12.xaml) 保存到一个新的类库项目中,修复了所有缺失的引用,当我编译时我得到了这个:

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Xaml.targets(347,5): 
error XC1043: Extension 'Microsoft.Activities.Build.Validation.ValidationBuildExtension' 
threw an exception of type 'System.Xaml.XamlObjectWriterException' 
  'The invocation of the constructor on type 
  'Microsoft.TeamFoundation.Build.Activities.Git.GitPull' that matches 
  the specified binding constraints threw an exception.'.`

有什么可能出错的帮助吗?

【问题讨论】:

  • 您不需要编译构建工作流程,它经常会失败。如果设计器中的工作流没有显示任何错误,我倾向于只在服务器上尝试。通常它会起作用。
  • 按照这些说明 tfsbuildextensions.codeplex.com/… 尝试换出 MSBuild 任务并将其替换为对 VS2008 devenv 的调用
  • 您是否将 build.xaml 文件的 BuildAction 设置为 None
  • 设置为XamlAppDef

标签: git tfsbuild


【解决方案1】:

您错过了您一直遵循的教程的一步。添加 GitTemplate.12.xaml 后,您应该将 BuildAction 设置为 None:

3 .在添加的文件上,将构建操作属性设置为无

这将允许您编辑构建工作流程而无需编译它。工作流不会编译,这并不意味着它不会运行。不要问我为什么会这样,我前段时间问过 Visual Studio 产品团队,他们确认构建工作流不应该编译。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-12-22
    相关资源
    最近更新 更多