I'm trying in my XAML template to put as argument the name of the current build, so I put as String argument: "BuildDetail.BuildNumber"
But after queue my build I have this error:
`Exception Message: Could not find a part of the path 'C:\Windows\system32\BuildDetail.BuildNumber'. (type DirectoryNotFoundExceptio`n)
Thank you very much!
EDIT, where I want to put the argument:
And the build number format ($(BuildDefinitionName)_$(Date:yyyyMMdd)$(Rev:.r)):
EDIT 2, I follow this: TFS 2010 : Use the label name in build number format
And I found that:
Exception Message: The root element of the build process template found at $/test8/BuildProcessTemplatest8/BuildProcessSourcet8/Templates/CustomTemplatet8.xaml (version C239) is not valid. (The build process failed validation. Details:
Validation Error: The private implementation of activity '1: DynamicActivity' has the following validation error: Compiler error(s) encountered processing expression "String.Format("$(BuildDefinitionName)_$(Date:yyyyMMdd)_{0}$(Rev:.r)", BuildDetail.SourceGetVersion)".
'Microsoft.TeamFoundation.Build.Client.BuildDetail' is not accessible in this context because it is 'Friend'.