Using MSBuild.exe to “Publish” a ASP.NET MVC 4 project with the cmd line

前端 未结 5 1047
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-07 08:23

I\'m looking for a command to run against the MSBuild.exe that just takes a MVC 4 project and publishes it to a given directory.

For example,



        
5条回答
  •  孤街浪徒
    2020-12-07 08:59

    The command below works perfect:

    msbuild Myproject.sln  /t:Rebuild /p:outdir="c:\outproject\\" /p:Configuration=Release /p:Platform="Any CPU"
    

提交回复
热议问题