All I do is try to keep track of the number of times a specific target has been called. Can this be done with msbuild?
EDIT:
I tried to do something like this:
<Message Text ="The sum of $(NumberOne) and $(NumberTwo) is $([MsBuild]::Add($(NumberOne),$(NumberTwo))"/>
but that didn't work either. My result was Sum 2 and 3 equals $ ([MsBuild] :: Add ($ (NumberOne), $ (NumberTwo))
Regarding the suggestion to use the element: I think I could use additional information. I have read some articles, but I donβt see how they can be used as integers. They seem to be intended for file collections.
source share