How does one build a .csproj from command line having a log written to a specified location?

前端 未结 3 2021
遇见更好的自我
遇见更好的自我 2021-02-19 03:47

While the \'no-log\' build seems to work smoothly with something like

\"c:\\Program Files\\Microsoft Visual Studio 9.0\\Common7\\ide\\VCSExpress\" Project

3条回答
  •  -上瘾入骨i
    2021-02-19 04:46

    You have to specify the configuration after the /build option. Also, the log file must already exist, it doesn't create one from scratch. Thus:

    copy con > log.txt
    ^Z      // Type Ctrl+Z
    "c:\Program Files\Microsoft Visual Studio 9.0\Common7\ide\VCSExpress" Project1.csproj /build debug /log log.txt
    

提交回复
热议问题