The best I've come up with is adding a task as a first step in the first build phase, which checks to see if the required variables are set. If there are none, the assembly failed.
I use PowerShell for this:
if ([string]::IsNullOrWhitespace($env:Major)) { throw "Major not set" }
, , , .. . , , , , ( 14/15) , .
VSTS UserVoice " ".