Invoke a publish from msbuild for visual studio 2012

前端 未结 2 1229
[愿得一人]
[愿得一人] 2021-02-07 18:49

For VS2010 and before I was utilizing Web Deployment Projects (WDP) to help package my website for production deployment. I had a MSBuild script that compiled the solution in r

2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-07 19:09

    It appears that there are now some other options for publishing from the command-line. Specifically something along the lines of the following seems possible now with some RC updates to Visual Studio 2012.

    msbuild mywap.csproj /p:DeployOnBuild=true;PublishProfile=MyProfileName
    

    For more details check out this post by Scott Hanselman and check out the section on Publishing.

提交回复
热议问题