How to get cmd line build command for VS solution?

前端 未结 6 883
名媛妹妹
名媛妹妹 2020-12-02 17:28

This is probably easy but I am getting stuck: when I build a solution in Visual Studio - how do extract the exact cmd line for the current build command in order to be able

6条回答
  •  情深已故
    2020-12-02 17:50

    If you want to see the exact command line as provided by VS (rather than work it out) then you could try replacing the MSBuild.exe with your own console app that prints out all the parameters to a file.

    You could also write out all the environment variables supplied to check which ones VS provides in the background.

提交回复
热议问题