我已经将默认的 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/