MSbuild built into variables

Can someone translate this into syntax that uses inline variables?

\\myserver\builds\mybuild\Daily_20090525.1\Release\_PublishedWebsites\myWebsite 

it should be something like:

 $(DropLocation)\mybuild\$(?...)\Release\_PublishedWebsites\myWebsite 
+4
source share
1 answer

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"> .

+6
source

All Articles