Automatically publish web application on build from Visual Studio 2015

后端 未结 3 423
感情败类
感情败类 2021-01-12 11:07

Is there any way to automatically have a web application published using a pre-created publish profile on successful build? I don\'t want to have to click the publish icon,

3条回答
  •  星月不相逢
    2021-01-12 12:00

    Try like below,

    msbuild mysln.sln /p:DeployOnBuild=true /p:PublishProfile=
    

    you have to pass following as build parameter in the project property.

    /p:DeployOnBuild=true 
    /p:PublishProfile=
    

提交回复
热议问题