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

前端 未结 3 2034
遇见更好的自我
遇见更好的自我 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条回答
  •  心在旅途
    2021-02-19 04:28

    Under the hood, Visual Studio uses msbuild for all it's build magic. As far as I know, this applies to the Express editions as well.

    If you don't have it already, MSBuild is a part of the .NET SDK.

    Calling MSBuild has the advantage of doing the build directly - calling VCSExpress will just introduce overhead.

    Here's the MSBuild commandline that I've used:

    msbuild.exe  
        /t:rebuild 
        /verbosity:quiet 
        /logger:FileLogger,Microsoft.Build.Engine;logfile=
    

    Should work the same with instead of .

提交回复
热议问题