File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 384
384
<Delete Files =" $(_GitInfoFile)" />
385
385
</Target >
386
386
387
- <Target Name =" _GitReadCache" Condition =" Exists('$(_GitInfoFile)') And '$(SkipReadGitCache)' != 'true' " >
388
- <PropertyGroup >
389
- <_GitCachedInfo >$([System.IO.File]::ReadAllText('$(_GitInfoFile)'))</ _GitCachedInfo >
390
- </PropertyGroup >
387
+ <Target Name =" _GitReadCache" Condition =" Exists('$(_GitInfoFile)') And '$(SkipReadGitCache)' != 'true'" >
388
+ <ReadLinesFromFile File = " $(_GitInfoFile) " ContinueOnError = " true " >
389
+ <Output TaskParameter = " Lines " ItemName = " _GitCachedInfo" / >
390
+ </ReadLinesFromFile >
391
391
392
- <CreateItem Include =" GitInfo" AdditionalMetadata =" $ (_GitCachedInfo.Split (';'))" >
392
+ <CreateItem Include =" GitInfo" AdditionalMetadata =" @ (_GitCachedInfo -> TrimEnd (';'))" >
393
393
<Output TaskParameter =" Include" ItemName =" GitInfo" />
394
394
</CreateItem >
395
395
You can’t perform that action at this time.
0 commit comments