Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Customising the default TFS Git build template

Tags:

git

tfsbuild

I've saved the default TFS Git build template (GitTemplate.12.xaml) to a new Class Library project, fixed all the missing references and when I compile I get this:

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.'.`

Any help as to what could be wrong?

like image 886
Naeem Sarfraz Avatar asked Dec 24 '13 13:12

Naeem Sarfraz


1 Answers

You missed a step on the tutorial you've been following. After adding the GitTemplate.12.xaml you should set the BuildAction to None:

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

That will allow you to edit the build workflow without having to compile it. The workflow just won't compile, that doesn't mean it won't run. Don't ask me why that is, I asked the Visual Studio Product Team some time back and they confirmed that the build workflow isn't supposed to compile.

like image 116
jessehouwing Avatar answered Oct 31 '22 20:10

jessehouwing