Gathering outputs from an MSBuild exec task

后端 未结 1 406
难免孤独
难免孤独 2021-01-03 23:47

I have a batch script that I want to call from an MSBuild project, and the documentation says I can\'t use output from the batch (either console / environment variables) in

1条回答
  •  余生分开走
    2021-01-04 00:08

    You can redirect the output of the command to a file using "> output.txt" and read that into a variable.

    
       $(DropLocation)\$(BuildNumber)\Output.txt
    
    
    
       
    
    
    

    0 讨论(0)
提交回复
热议问题