I am getting the following build error when using my "custom" XAML process build file:
(-1, 0)
TF215097: An error occurred while initializing a build for build definition >\Test2\TestProject1: Exception Message: Cannot set unknown member 'Microsoft.TeamFoundation.Build.Activities.RunScript.FailOnNonZeroExitCode'. (type XamlObjectWriterException)
Steps to Reproduce
- Download the TfvcTemplate.12.xaml file to local storage
- Open the template in the XAML visual editor (in new project or standalone)
- Save the template (NOTE: this adds lots of extra XAML markup for some reason)
- Commit the template to TFS
- Import the template into the Process section of my build definition
- Refresh the build process file
- Queue a build using the "new" template
I haven't seen anything on StackOverflow or the ASP.NET forums regarding this particular error message in regards to saving the exact same file and using it again. I have resorted to editing the XAML manually so that the extra markup doesn't break my build, but I'd much rather use the Toolbox to configure my workflow.
Any thoughts as to why this would happen or why I'm getting that particular error message?
Note: I am using Visual Studio 2015 and TFS 2015.