This may help: replace "mybuild \ $ (? ...)" with "$ (BuildNumber)"
I had a similar problem when I tried to copy from the "Drop" folder to the "last" folder. I found that to create the final destination of the files (\ MyServer \ MyShare \ builds \ MyBuild \ Daily_20090708.14 \ Mixed Platforms \ Release), translated to the following variables: $ (DropLocation) \ $ (BuildNumber) \% (ConfigurationToBuild.PlatformToBuild ) \% (ConfigurationToBuild.FlavorToBuild)
I also found it helpful to use the Message task for troubleshooting. The next task will tell you why the variable is being translated. <Message Text="$(DropLocation)\$(BuildNumber)\%(ConfigurationToBuild.PlatformToBuild)\%(ConfigurationToBuild.FlavorToBuild)\"/> To see the result, look at BuildLog.txt.
PS: My tasks, which used the properties and elements mentioned above, are located inside <Target Name="AfterDropBuild"> .
source share