I have a text file with a numeric value in it (say 1). I open and read the file using:
<BuildVersionFile Include="$(MSBuildProjectDirectory)\BuildNumber.txt"/>
<Target Name="ReadReleaseNotes">
<ReadLinesFromFile
File="@(BuildVersionFile)" >
<Output
TaskParameter="Lines"
ItemName="Build
Version"/>
</ReadLinesFromFile>
I want to increase the value of BuildVersion and write it back to the txt file. How can I do this math?