How to get cmd line build command for VS solution?

前端 未结 6 904
名媛妹妹
名媛妹妹 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 18:01

    For VS .NET 2003 you can use devenv.exe to build the solution/project from command line.

    devenv solutionfile.sln  /build solutionconfig
    

    E.g. usage in batch file:

    call "C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\vsvars32.bat"
    
    devenv Tools.sln /build "Release"
    

提交回复
热议问题