git - 自定义默认 TFS Git 构建模板

标签 git tfsbuild

我已经将默认的 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.'.`

任何关于可能出错的帮助?

最佳答案

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

3 . On the added file set the build action property to none

这将使您无需编译即可编辑构建工作流程。工作流只是不会编译,并不意味着它不会运行。不要问我为什么会这样,我之前问过 Visual Studio 产品团队,他们确认构建工作流不应该编译。

关于git - 自定义默认 TFS Git 构建模板,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20761421/

相关文章:

reactjs - 世博会初始化不需要的 git repo

git push 和 pull over http 在 Windows 上挂起,没有错误

git - 如何删除所有已 merge 的 Git 分支?

Azure 托管的本地构建 Controller + VSO : Error TF400106: Failed to register the build service (Exception Message: Could not find service)

powershell - TFS 2015.3定制构建步骤未将变量发送到脚本

powershell - TFS 构建 vNext rest api : queue build requested for

git - 如何避免 Maven 和 CI 的提交/发布循环?

eclipse : "re-indexing repository workspace"或 "Computing Git status for repository workspace"

visual-studio - 团队基础错误,找不到页面 '3185ed96-1cbd-4381-a439-636973542e50'

tfsbuild - VSO/VSTS : Error when using Publish Build Artifacts on the host agent