Reputation: 523
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
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.
Upvotes: 0
Views: 752
Reputation: 51103
Since you haven't changed 'anything' to the default TfvcTemplate.12.xaml . You can try to download a new TfvcTemplate.12.xaml without opening it in the XAML visual editor. Just checking in the source control.
If still build fails then Try to clean TFS cash and VS cash
If build success without error, this may caused by VS. Try to reinstall Visual Studio.
Upvotes: 0