Problem Executing Batch File in Pre-Build Event

前端 未结 8 1459
攒了一身酷
攒了一身酷 2021-02-20 01:05

I\'m trying to execute a batch file during a pre-build event. I have a new project and have added foo.bat to it. The file contains the following line:

8条回答
  •  北荒
    北荒 (楼主)
    2021-02-20 01:13

    The current working directory of the pre-build and post-build events is the output directory specified by the macro $(OutDir), not the project directory.

    The following tags in "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets" specify this:

    
    
        
    
    
    
    
        
    
    

提交回复
热议问题