Q:

TFS Get both XAML and VNEXT build definitions

I'm trying to get both xaml and vnext build definitions from my TFS using BuildHttpClient.GetDefinitionsAsync function but it brings me only vnext build definitions. Does it is a proper behavior of this function? It seems that it need to return both kind of build definitions.
I see that the underlying GET request contains type=Build parameter. According to reference it is an optional parameter, but GetDefinitionsAsync has no such parameter in its signature...
UPD
I've tried is with the latest version (15.112.1) of Microsoft.TeamFoundationServer.Client nuget package
The previous version ([14.102.0]) of the same package works well. The underlying GET request has no type parameter and brings both types of build definitions.

A:

There is XamlBuildHttpClient object in Microsoft.TeamFoundationServer.Client 15.0 package, which is used for XAML build, for example:
var buildClient = connection.GetClient<XamlBuildHttpClient>();
var defs = buildClient.GetDefinitionsAsync(project: "XXX").Result;

